################################################################################
## /etc/inputrc
##
## Attempt to put different TERMs together in one readline init file.
## Copyright (c) 1997,2000,2002 SuSE Linux AG, Nuernberg, Germany.
## Copyright: 2007 SuSE  LINUX Products GmbH, Nuernberg, Germany.
##
## Author: Werner Fink
## Please send feedback to http://www.suse.de/feedback
##
################################################################################
#
# Eight bit compatible: Umlaute
#
set meta-flag on
set input-meta on
set output-meta on
set convert-meta off
set enable-meta-key off
#
# When enabled use application keypad, with XTerm the e.g.  Up key switch from
# ESC [ A over to ESC O A .  On the bash command prompt the commands
#  tput smkx
# for enter keyboard_transmit mode as well as
#  tput rmkx
# for leave keyboard_transmit mode can be used to sitch to application keypad
# and switch back
#
#$if Bash
#set enable-keypad on
#$endif
#
# VI line editing
#
# All mappings below the following line belongs to vi-command mode
set keymap vi-command
# Common standard keypad and cursor
$include /etc/inputrc.keys
#
# All mappings below the following line belongs to vi-insert mode
set keymap vi-insert
# Common standard keypad and cursor
$include /etc/inputrc.keys
#
#  EMACS line editing
#
$if mode=emacs
set keymap emacs
# Common standard keypad and cursor
$include /etc/inputrc.keys
#
# ... xterm application cursor
#
$if term=xterm
"\e\eOD":	backward-word
"\e\eOC":	forward-word
"\e\eOA":	previous-history
"\e\eOB":	next-history
"\C-\eOD":	backward-char
"\C-\eOC":	forward-char
"\C-\eOA":	previous-history
"\C-\eOB":	next-history
"\M-\eOD":	backward-word
"\M-\eOC":	forward-word
"\M-\eOA":	previous-history
"\M-\eOB":	next-history
"\C-\M-OD":	backward-char
"\C-\M-OC":	forward-char
"\C-\M-OA":	previous-history
"\C-\M-OB":	next-history
$endif
#
# Standard cursor
#
"\e\e[D":	backward-word
"\e\e[C":	forward-word
"\e\e[A":	previous-history
"\e\e[B":	next-history
"\C-\e[D":	backward-char
"\C-\e[C":	forward-char
"\C-\e[A":	previous-history
"\C-\e[B":	next-history
"\M-\e[D":	backward-word
"\M-\e[C":	forward-word
"\M-\e[A":	previous-history
"\M-\e[B":	next-history
"\C-\M-[D":	backward-char
"\C-\M-[C":	forward-char
"\C-\M-[A":	previous-history
"\C-\M-[B":	next-history
$endif
#
# end
#
