Check input device is a terminal: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: comment -> use new requires() builtin) |
(add Standard ML) |
||
Line 430: | Line 430: | ||
println("tty " + apply(true)) |
println("tty " + apply(true)) |
||
}</lang> |
}</lang> |
||
=={{header|Standard ML}}== |
|||
<lang sml>val stdinRefersToTerminal : bool = Posix.ProcEnv.isatty Posix.FileSys.stdin</lang> |
|||
=={{header|Tcl}}== |
=={{header|Tcl}}== |