Check output device is a terminal: Difference between revisions
Content added Content deleted
(Scala solution added) |
No edit summary |
||
Line 65: | Line 65: | ||
stdout is not tty |
stdout is not tty |
||
</pre> |
</pre> |
||
=={{header|C#|C sharp}}== |
|||
<lang csharp>using System; |
|||
namespace CheckTerminal { |
|||
class Program { |
|||
static void Main(string[] args) { |
|||
Console.WriteLine("Stdout is tty: {0}", Console.IsOutputRedirected); |
|||
} |
|||
} |
|||
}</lang> |
|||
=={{header|Common Lisp}}== |
=={{header|Common Lisp}}== |