[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Readline will not bind some function keys in xterm



Hello All,

Am running all the latest hamm packages.

All twelve function keys bind properly when using the console or when in X using
rxvt.  Only F5 through F12 will bind when in X using an xterm.  F1 through F4
just give a beep when pressed.  Am using terminfo xterm-xf86-v33.  Have tried
other terminfos with the same result.  Don't know if this is a problem in
readline, ncurses terminfo stuff, xterm or somewhere else.

Any help appreciated.

Regards,

-- 
Victor Torrico

          ------ Wildflower Hill, Head Waters, Virginia ------


*********************** /etc/inputrc follows *******************************

# /etc/inputrc - global inputrc for libreadline
# See readline(3readline) and `info readline' for more information.

#
# My ~/.inputrc file is in -*- text -*- for easy editing with Emacs.
#
# Notice the various bindings which are conditionalized depending
# on which program is running, or what terminal is active.
#


# In all programs, all terminals, make sure this is bound.

"\C-x\C-r": re-read-init-file

# Allow iso-latin1 characters to be inserted.

set convert-meta off

# Don't strip high bit when reading or displaying.

set input-meta on
set output-meta on

# Make the Home, End, Delete, and Function keys work on the console.

$if term=linux
"\e[1~": beginning-of-line
"\e[3~": delete-char
"\e[4~": end-of-line
"\e[[a": "Function Key 1"
"\e[[b": "Function Key 2"
"\e[[c": "Function Key 3"
"\e[[d": "Function Key 4"
"\e[[e": "Function Key 5"
"\e[17~": "Function Key 6"
"\e[18~": "Function Key 7"
"\e[19~": "Function Key 8"
"\e[20~": "Function Key 9"
"\e[21~": "Function Key 10"
"\e[23~": "Function Key 11"
"\e[24~": "Function Key 12"
$endif

# Make the Home, End, Delete, and Function keys work in an rxvt.

$if term=rxvt
"\e[1~": beginning-of-line
"\e[3~": delete-char
"\e[4~": end-of-line
"\e[11~": "Function Key 1"
"\e[12~": "Function Key 2"
"\e[13~": "Function Key 3"
"\e[14~": "Function Key 4"
"\e[15~": "Function Key 5"
"\e[17~": "Function Key 6"
"\e[18~": "Function Key 7"
"\e[19~": "Function Key 8"
"\e[20~": "Function Key 9"
"\e[21~": "Function Key 10"
"\e[23~": "Function Key 11"
"\e[24~": "Function Key 12"
$endif

# Make the Home, End, Delete, and Function keys work in an xterm.

$if term=xterm
"\e[H": beginning-of-line
"\e[F": end-of-line
"\C-?": delete-char
"\e[11~": "Function Key 1"
"\e[12~": "Function Key 2"
"\e[13~": "Function Key 3"
"\e[14~": "Function Key 4"
"\e[15~": "Function Key 5"
"\e[17~": "Function Key 6"
"\e[18~": "Function Key 7"
"\e[19~": "Function Key 8"
"\e[20~": "Function Key 9"
"\e[21~": "Function Key 10"
"\e[23~": "Function Key 11"
"\e[24~": "Function Key 12"
$endif

*************************************************************************


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: