summaryrefslogtreecommitdiff
path: root/debian/inputrc.arrows
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-10-08 11:48:42 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-10-08 11:48:42 +0400
commit597d7d4d9df6e688e766f1da1c7de92b191fbde9 (patch)
treee758dd00a56a9039deba2abab755033466bd0cbf /debian/inputrc.arrows
downloadbash-debian/4.3-11.tar.gz
Debian bash 4.3-11debian/4.3-11debian
Diffstat (limited to 'debian/inputrc.arrows')
-rw-r--r--debian/inputrc.arrows30
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/inputrc.arrows b/debian/inputrc.arrows
new file mode 100644
index 0000000..21aed08
--- /dev/null
+++ b/debian/inputrc.arrows
@@ -0,0 +1,30 @@
+# This file controls the behaviour of line input editing for
+# programs that use the Gnu Readline library.
+#
+# Arrow keys in keypad mode
+#
+"\C-[OD" backward-char
+"\C-[OC" forward-char
+"\C-[OA" previous-history
+"\C-[OB" next-history
+#
+# Arrow keys in ANSI mode
+#
+"\C-[[D" backward-char
+"\C-[[C" forward-char
+"\C-[[A" previous-history
+"\C-[[B" next-history
+#
+# Arrow keys in 8 bit keypad mode
+#
+"\C-M-OD" backward-char
+"\C-M-OC" forward-char
+"\C-M-OA" previous-history
+"\C-M-OB" next-history
+#
+# Arrow keys in 8 bit ANSI mode
+#
+"\C-M-[D" backward-char
+"\C-M-[C" forward-char
+"\C-M-[A" previous-history
+"\C-M-[B" next-history