From 8ac6794d10768b5e0f7a700117b8a3110a24af30 Mon Sep 17 00:00:00 2001 From: Ivan Sorokin Date: Tue, 30 Jul 2024 17:46:27 +0200 Subject: [PATCH] set FAR2L_NOEXTKB env var to 1 to disable extended keyboard input modes by windows terminal, iterm2, kitty currently by env var, not command line switch, as i am not sure how to pass nodetect var to TTYOutput in best way --- WinPort/src/Backend/TTY/TTYOutput.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/WinPort/src/Backend/TTY/TTYOutput.cpp b/WinPort/src/Backend/TTY/TTYOutput.cpp index 2537ca487..a1c5ee19b 100644 --- a/WinPort/src/Backend/TTY/TTYOutput.cpp +++ b/WinPort/src/Backend/TTY/TTYOutput.cpp @@ -174,9 +174,11 @@ TTYOutput::TTYOutput(int out, bool far2l_tty, bool norgb) #endif Format(ESC "7" ESC "[?47h" ESC "[?1049h" ESC "[?2004h"); - Format(ESC "[?9001h"); // win32-input-mode on - Format(ESC "[?1337h"); // iTerm2 input mode on - Format(ESC "[=15;1u"); // kovidgoyal's kitty mode on + if (!getenv("FAR2L_NOEXTKB")) { + Format(ESC "[?9001h"); // win32-input-mode on + Format(ESC "[?1337h"); // iTerm2 input mode on + Format(ESC "[=15;1u"); // kovidgoyal's kitty mode on + } ChangeKeypad(true); ChangeMouse(true);