Check output device is a terminal: Difference between revisions
Content added Content deleted
(added solution for c++) |
|||
Line 448: | Line 448: | ||
echo "Output is NOT a terminal" >/dev/tty |
echo "Output is NOT a terminal" >/dev/tty |
||
fi</lang> |
fi</lang> |
||
=={{header|Visual Basic .NET}}== |
|||
{{trans|C#}} |
|||
<lang vbnet>Module Module1 |
|||
Sub Main() |
|||
Console.WriteLine("Stdout is tty: {0}", Console.IsOutputRedirected) |
|||
End Sub |
|||
End Module</lang> |
|||
=={{header|zkl}}== |
=={{header|zkl}}== |