From 180ee6beb51aaf9540abc45dd2264651de996772 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Sat, 17 Nov 2018 15:40:48 +0800 Subject: [PATCH] support history-search-forward and history-search-backward. close #307 --- .../com/taobao/arthas/core/shell/term/readline/inputrc | 8 ++++++-- pom.xml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) 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 4f1792dda..d05a1ce65 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 @@ -8,8 +8,12 @@ "\C-b": backward-word "\e[D": backward-char "\e[C": forward-char -"\e[B": next-history -"\e[A": previous-history + +# "\e[B": next-history +# "\e[A": previous-history +"\e[A": history-search-backward +"\e[B": history-search-forward + "\C-h": backward-delete-char "\C-?": backward-delete-char "\C-u": undo diff --git a/pom.xml b/pom.xml index dc8798735..79c82e3c6 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.alibaba.middleware termd-core - 1.1.7 + 1.1.7.1 com.alibaba.middleware