# for bash's readline
$if BASH
# variables
set bell-style on
set visible-stats on

# key bindings
#
# translation characters for extended keys:
#   "\e[0": no shifts, "\e[1": SHIFT, "\e[2": CTRL, "\e[3": ALT
#   "A": UP, "B": LEFT, "C": RIGHT, "D": DOWN, "E": INS, "F": DEL
#   "G": HOME, "H": END, "I": PAGE UP, "J": PAGE DOWN
#    "XA": F1, "XB": F2, ... "XL": F12
#
"\e[0A": previous-history
"\e[0B": backward-char
"\e[0C": forward-char
"\e[0D": next-history
"\e[0G": beginning-of-line
"\e[0H": end-of-line
"\e[0I": history-search-backward
"\e[0J": history-search-forward
"\e[0F": delete-char
"\e[2B": backward-word
"\e[2C": forward-word
"\e[2I": beginning-of-history
"\e[2J": end-of-history

"\e[0XA": "Function Key 1"
"\e[0XB": "Function Key 2"
"\e[0XC": "Function Key 3"
"\e[1XA": "SHIFT + Function Key 1"
"\e[1XB": "SHIFT + Function Key 2"
"\e[1XC": "SHIFT + Function Key 3"
"\e[2XA": "CTRL + Function Key 1"
"\e[2XB": "CTRL + Function Key 2"
"\e[2XC": "CTRL + Function Key 3"
"\e[3XA": "ALT + Function Key 1"
"\e[3XB": "ALT + Function Key 2"
"\e[3XC": "ALT + Function Key 3"
$endif
