Skip to content
Snippets Groups Projects
Commit c5c4534c authored by Or Cohen's avatar Or Cohen
Browse files

Added basic readline configuration

Parsed by JLine (in CRaSH)
Console should now better understand keys like home/end/arrows
parent 8b0ea169
No related branches found
No related tags found
No related merge requests found
...@@ -96,3 +96,4 @@ ...@@ -96,3 +96,4 @@
/console/dhclient.js: ../../console/dhclient.js /console/dhclient.js: ../../console/dhclient.js
/&/console/perf.js: ../../& /&/console/perf.js: ../../&
/&/etc/hosts: ../../static/& /&/etc/hosts: ../../static/&
/&/etc/inputrc: ../../static/&
# /etc/inputrc - inputrc for JLine
# some defaults / modifications for the emacs mode
$if mode=emacs
# allow the use of the Home/End keys
"\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
# mappings for "page up" and "page down" to step to the beginning/end
# of the history
# "\e[5~": beginning-of-history
# "\e[6~": end-of-history
# alternate mappings for "page up" and "page down" to search the history
# "\e[5~": history-search-backward
# "\e[6~": history-search-forward
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
"\e[8~": end-of-line
"\eOc": forward-word
"\eOd": backward-word
# for non RH/Debian xterm, can't hurt for RH/Debian xterm
"\eOH": beginning-of-line
"\eOF": end-of-line
# for freebsd console
"\e[H": beginning-of-line
"\e[F": end-of-line
$endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment