1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00
serenity/Libraries/LibLine
Nico Weber 83c07be794 LibVT+LibLine: Use 1;mods CSI parameters for ctrl/alt/shift-arrow keys
xterms send a bitmask (+ 1) in the 2nd CSI parameter if "special"
keys (arrow keys, pgup/down, etc) are sent with modifiers held down.

Serenity's Terminal used to send ^[[O, which is a nonexistent
escape sequence and a misread of VT100's ^[O (ie the '[' is
replaced by 'O'). Since the xterm scheme also supports shift
and alt modifiers, switch to that.

More flexible, and makes ctrl-left/right and alt-left/right work
in SerenityOS's bash port.

Also do this for page up/down.

No behavior change for SerenityOS's Shell.
2020-09-15 09:45:13 +02:00
..
CMakeLists.txt LibLine: Make (almost) all key actions configurable 2020-08-18 12:07:32 +02:00
Editor.cpp LibVT+LibLine: Use 1;mods CSI parameters for ctrl/alt/shift-arrow keys 2020-09-15 09:45:13 +02:00
Editor.h LibLine: Parse CSI parameters and immediates 2020-09-15 09:45:13 +02:00
InternalFunctions.cpp LibLine: Make ^R search match the input anywhere in a given line 2020-09-07 11:42:56 +02:00
Span.h LibLine: Remove unused header in Span.h 2020-05-29 07:59:45 +02:00
StringMetrics.h LibLine: Correctly display suggestions on multiline prompts 2020-06-30 18:21:44 +02:00
Style.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
SuggestionDisplay.h LibLine: Removed unused private field m_prompt_metrics 2020-08-04 17:42:08 +02:00
SuggestionManager.cpp Unicode: Try s/codepoint/code_point/g again 2020-08-05 22:33:42 +02:00
SuggestionManager.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
VT.h LibLine: Refactor suggestion handling and display logic out 2020-05-23 01:31:41 +02:00
XtermSuggestionDisplay.cpp LibLine: Only write to the standard error 2020-08-09 21:50:33 +02:00