diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index fce51cb7..18be7bd2 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -412,6 +412,8 @@ void NCursesUI::set_terminal_mode() const fputs("\033=", stdout); // force enable report focus events fputs("\033[?1004h", stdout); + // request CSI u style key reporting + fputs("\033[>4;1m", stdout); fflush(stdout); } @@ -420,6 +422,7 @@ void NCursesUI::restore_terminal_mode() const tcsetattr(STDIN_FILENO, TCSAFLUSH, &m_original_termios); fputs("\033>", stdout); fputs("\033[?1004l", stdout); + fputs("\033[>4;0m", stdout); fflush(stdout); }