Skip to content

Document the undocumented -X switches #103

@lmakarov

Description

@lmakarov

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 -Xplain

Also: 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 ... > ).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions