Check output device is a terminal: Difference between revisions

Content added Content deleted
m (→‎{{header|Phix}}: comment -> use new requires() builtin)
(add Standard ML)
Line 562: Line 562:
println("tty " + apply(true))
println("tty " + apply(true))
}</lang>
}</lang>

=={{header|Standard ML}}==
<lang sml>val stdoutRefersToTerminal : bool = Posix.ProcEnv.isatty Posix.FileSys.stdout</lang>


=={{header|Tcl}}==
=={{header|Tcl}}==