_isatty() for C#?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ivan Krivyakov

    #1

    _isatty() for C#?

    If I have a console application, how can I determine if standard output
    points to the actual console, or has been redirected?

    In plain C this could be achieved with _isatty() function,
    and, to some extent with Win32 GetFileType() function.

    Ivan


Working...