Skip to content

Commit

Permalink
try to negotiate far2l terminal extensions if working via pipe regard…
Browse files Browse the repository at this point in the history
…less of ability to setup raw mode (fix #1857)
  • Loading branch information
elfmz committed Oct 1, 2023
1 parent 9223702 commit 0fcaa60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WinPort/src/Backend/WinPortMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ extern "C" int WinPortMain(const char *full_exe_path, int argc, char **argv, int
tty_raw_mode.reset(new TTYRawMode(std_in, std_out));;
if (!strchr(arg_opts.nodetect, 'f')) {
// tty_raw_mode.reset(new TTYRawMode(std_out));
if (tty_raw_mode->Applied()) {
if (tty_raw_mode->Applied() || !isatty(std_out)) {
arg_opts.far2l_tty = TTYNegotiateFar2l(std_in, std_out, true);
if (arg_opts.far2l_tty) {
arg_opts.tty = true;
Expand Down

0 comments on commit 0fcaa60

Please sign in to comment.