diff mbox series

readline: enable HOME, END, INSERT, and DELETE key bindings in inputrc

Message ID 20250526171042.57341-1-hiagofranco@gmail.com
State Accepted, archived
Commit 93ea8d1c38ab93912306dd5f7d57745c833161b0
Headers show
Series readline: enable HOME, END, INSERT, and DELETE key bindings in inputrc | expand

Commit Message

Hiago De Franco May 26, 2025, 5:10 p.m. UTC
From: Hiago De Franco <hiago.franco@toradex.com>

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>
---
 meta/recipes-core/readline/files/inputrc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/readline/files/inputrc b/meta/recipes-core/readline/files/inputrc
index b5c4c8af24b0..4a2874bccc7f 100644
--- a/meta/recipes-core/readline/files/inputrc
+++ b/meta/recipes-core/readline/files/inputrc
@@ -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