From 4dd0b432ab3d56da5a37b9e7ed02e878c738b7a3 Mon Sep 17 00:00:00 2001 From: Joachim Henke <37883863+jo-he@users.noreply.github.com> Date: Sun, 19 Jan 2020 15:30:18 +0100 Subject: [PATCH 1/2] the option 'ncurses_builtin_key_parser' has gone --- doc/pages/options.asciidoc | 3 --- 1 file changed, 3 deletions(-) diff --git a/doc/pages/options.asciidoc b/doc/pages/options.asciidoc index 453fde45..d074accf 100644 --- a/doc/pages/options.asciidoc +++ b/doc/pages/options.asciidoc @@ -316,9 +316,6 @@ are exclusively available to built-in options. Function key from which shifted function key start, if the terminal sends F13 for , this should be set to 12. - *ncurses_builtin_key_parser*::: - Bypass ncurses key parser and use an internal one. - [[startup-info]] *startup_info_version* `int`:: _default_ 0 + From 2deeb9df5214fc4ab1b001c9ee818dc5fcb611e1 Mon Sep 17 00:00:00 2001 From: Joachim Henke <37883863+jo-he@users.noreply.github.com> Date: Sun, 19 Jan 2020 16:22:34 +0100 Subject: [PATCH 2/2] make the Insert key work in st --- src/ncurses_ui.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index ad096147..82acb216 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -691,6 +691,7 @@ Optional NCursesUI::get_next_key() case 'D': return masked_key(Key::Left); case 'F': return masked_key(Key::End); // PC/xterm style case 'H': return masked_key(Key::Home); // PC/xterm style + case 'L': return Key{Key::Modifiers::Control, Key::Insert}; // st style case 'P': return masked_key(Key::F1); case 'Q': return masked_key(Key::F2); case 'R': return masked_key(Key::F3); @@ -722,6 +723,14 @@ Optional NCursesUI::get_next_key() return Key{Key::Modifiers::Shift, Key::F9 + params[0] - 33}; // rxvt style } return {}; + case 'h': + if (params[0] == 4) // st style + return Key{Key::Insert}; + break; + case 'l': + if (params[0] == 4) // st style + return Key{Key::Modifiers::Shift, Key::Insert}; + break; case 'u': return masked_key(static_cast(params[0])); case 'Z': return shift(Key::Tab);