]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
readline: enable HOME, END, INSERT, and DELETE key bindings in inputrc
authorHiago De Franco <hiago.franco@toradex.com>
Mon, 26 May 2025 17:10:42 +0000 (14:10 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 May 2025 09:51:50 +0000 (10:51 +0100)
Enable readline inputrc bindings for HOME, END, INSERT, and DELETE keys
to support common key sequences on terminal interfaces. These key
sequences are commonly emitted by terminal emulators and physical
keyboards.

This enables expected shell behavior on embedded systems, especially
when interacting over serial consoles or minimal terminal setups.

Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/readline/files/inputrc

index b5c4c8af24b001b0596e5080ceed11dd0a0dc602..4a2874bccc7f1024c9a8720172bd119c62abf48c 100644 (file)
@@ -24,12 +24,12 @@ set output-meta on
 $if mode=emacs
 
 # allow the use of the Home/End keys
-"\e[1~": beginning-of-line
-"\e[4~": end-of-line
+"\e[1~": beginning-of-line
+"\e[4~": end-of-line
 
 # allow the use of the Delete/Insert keys
-"\e[3~": delete-char
-"\e[2~": quoted-insert
+"\e[3~": delete-char
+"\e[2~": quoted-insert
 
 # mappings for "page up" and "page down" to step to the beginning/end 
 # of the history