diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 8cf08d9d..8d9efc15 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -640,7 +640,7 @@ Optional NCursesUI::get_next_key() else return {}; } - if (c < 0x40 or c > 0x7e) + if (c != '$' and (c < 0x40 or c > 0x7e)) return {}; auto parse_mask = [](int mask) { @@ -678,6 +678,13 @@ Optional NCursesUI::get_next_key() switch (c) { + case '$': + switch (params[0]) + { + case 23: case 24: + return Key{Key::Modifiers::Shift, Key::F11 + params[0] - 23}; // rxvt style + } + return {}; case 'A': return masked_key(Key::Up); case 'B': return masked_key(Key::Down); case 'C': return masked_key(Key::Right);