-
Notifications
You must be signed in to change notification settings - Fork 175
Description
I wish I knew this was possible much much earlier. Could have saved lots of hours of pain trying to get around the limitations on Windows.
Add undocumented -X switches to winpty.exe for testing
-Xallow-non-tty: allow stdin/stdout to not be ttys
-Xconerr: test the new CONERR mode (connect it to STDERR_FILENO)
-Xplain: enter plain, unescaped, mode
-Xcolor: force generation of color escapes, even with -XplainAlso: with "winpty.exe --showkey", stop trying to put stdout into raw
terminal mode, and ignore whether it is a tty.
In particular -Xallow-non-tty is a life saver! I understand it may not have been tested thoroughly yet, but it did solve all of my issues with using winpty with pipes (winpty ... | ...), subcommand evaluation (var=$(winpty ...)) and stream redirects (winpty ... > ).