From 4eb0eec18226b8eabf1faff2734002161a1e01b7 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Fri, 8 Feb 2019 15:06:23 +0800 Subject: [PATCH] inpurtrc support home/end. close #472 --- .../arthas/core/shell/term/readline/inputrc | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/core/src/main/resources/com/taobao/arthas/core/shell/term/readline/inputrc b/core/src/main/resources/com/taobao/arthas/core/shell/term/readline/inputrc index d05a1ce65..8a3576409 100644 --- a/core/src/main/resources/com/taobao/arthas/core/shell/term/readline/inputrc +++ b/core/src/main/resources/com/taobao/arthas/core/shell/term/readline/inputrc @@ -24,4 +24,24 @@ "\C-m": accept-line "\C-w": backward-delete-word "\C-x\e[3~": backward-kill-line -"\e\C-?": backward-kill-word \ No newline at end of file +"\e\C-?": backward-kill-word + +# for linux console +"\e[1~": beginning-of-line +"\e[4~": end-of-line +"\e[5~": beginning-of-history +"\e[6~": end-of-history +"\e[3~": delete-char +"\e[2~": quoted-insert + +# for rxvt #added +"\e[7~": beginning-of-line +"\e[8~": end-of-line + +# for xterm +"\eOH": beginning-of-line +"\eOF": end-of-line + +# for freebsd console +"\e[H": beginning-of-line +"\e[F": end-of-line \ No newline at end of file