You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something to deal with at some point, to handle the issue discussed in the linked conversation:
Something I brought up in an unrelated issue provides a solution here.
When Console.IsInputRedirected is true, that is an indicator the stream is not a tty and is actually exactly how all current operating systems define what it means to be a tty.
Not being a tty is what causes this problem. The other things are just symptoms.
It's not something we can fix, since being a tty is required to do what TG does.
But, we can reliably avoid that exception by checking Console.IsInputRedirected and Console.IsOutputRedirected, where each is respectively relevant, and either perform graceful back-off or shutdown in Terminal.Gui or throw a meaningful and specific exception.
Unfortunately, there's no automatic means of being notified that redirection happened, so all you can do is poll those properties.
All platforms use the C99 standard method of determining if a stream is a tty, too, so it's an operation that can and probably should be handled in the base ConsoleDriver class.
Something to deal with at some point, to handle the issue discussed in the linked conversation:
The text was updated successfully, but these errors were encountered: