[tyndur-devel] [PATCH 2/2] libc: readline: Strg+Pfeiltaste für wortweise Bewegung
Kevin Wolf ·
+ libc: readline: Wortweises Bewegen geht jezt nicht nur mit Alt+Pfeiltaste, sondern auch mit Strg+Pfeiltaste Signed-off-by: Kevin Wolf <kevin at tyndur.org> --- src/modules/lib/readline.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/modules/lib/readline.c b/src/modules/lib/readline.c index 163cf70..d27835c 100644 --- a/src/modules/lib/readline.c +++ b/src/modules/lib/readline.c @@ -94,6 +94,10 @@ static struct { { L"\033\033[C", FORWARD_WORD }, /// Alt + Pfeil links { L"\033\033[D", BACKWARD_WORD }, + /// Strg + Pfeil rechts + { L"\033[1;5C", FORWARD_WORD }, + /// Strg + Pfeil links + { L"\033[1;5D", BACKWARD_WORD }, /// Enter { L"\n", ACCEPT_LINE }, -- 1.6.0.2