HCoop
/
hcoop
/
domtool2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
client: function to check if stdin is a tty
[hcoop/domtool2.git]
/
src
/
client.sml
diff --git
a/src/client.sml
b/src/client.sml
index
0c4112f
..
a92b13f
100644
(file)
--- a/
src/client.sml
+++ b/
src/client.sml
@@
-25,6
+25,9
@@
datatype passwd_result =
| Aborted
| Error
| Aborted
| Error
+fun hastty () =
+ Posix.ProcEnv.isatty Posix.FileSys.stdin
+
fun getpass () =
let
val tty = Posix.FileSys.stdin
fun getpass () =
let
val tty = Posix.FileSys.stdin