F17 in Konsole

Paul Lemmons paul.lemmons at tmcaz.com
Thu Feb 23 19:54:19 UTC 2006


Just because it is possible that I am not the only one to run into this
and this group is searchable... I found a solution:

First I cd'ed to /usr/share/apps/konsole.
There, I copied vt440pc.keytab to vt220pc.keytab

I updated the new vt220pckeytab to look the text below. Then I went into
the Konsole settings and updated the "shell" configuration to use the
new keytable and set the TERM variable to vt220. Everything, so far,
works as it should.

Thanks for all of the pointers!

-Paul

BTW: a good page with all of the escape sequences documents can be found
at: http://aperiodic.net/phil/archives/Geekery/term-function-keys.html


################# IMPORTANT NOTICE #############################
# the key bindings (Kcontrol -> look and feel -> keybindgs)
# overrule the settings in this file. The key bindings might be
# changed by the user WITHOUT notification of the maintainer of
# the keytab file. Konsole will not work as expected by
# the maintainer of the keytab file.
################################################################
#
# --------------------------------------------------------------

keyboard "VT220PC"

# --------------------------------------------------------------
#
# This configuration table allows to customize the
# meaning of the keys.
#
# The syntax is that each entry has the form :
#
#   "key" Keyname { ("+"|"-") Modename } ":" (String|Operation)
#
# Keynames are those defined in <qnamespace.h> with the
# "Qt::Key_" removed. (We'd better insert the list here)
#
# Mode names are :
#
# - Shift
# - Alt
# - Control
#
#   The VT100 emulation has two modes that can affect the
#   sequences emitted by certain keys. These modes are
#   under control of the client program.
#
# - Newline     : effects Return and Enter key.
# - Application : effects Up and Down key.
#
# - Ansi        : effects Up and Down key (This is for VT52, really).
#
# Operations are
#
# - scrollUpLine
# - scrollUpPage
# - scrollDownLine
# - scrollDownPage
#
# - emitSelection
#
# If the key is not found here, the text of the
# key event as provided by QT is emitted, possibly
# preceeded by ESC if the Alt key is pressed.
#
# --------------------------------------------------------------

key Escape : "\E"
key Tab    : "\t"
key Backtab: "\E[Z"

# VT100 can add an extra \n after return.
# The NewLine mode is set by an escape sequence.

key Return-NewLine : "\r"
key Return+NewLine : "\r\n"

# Some desperately try to save the ^H.
# may be not everyone wants this

key Backspace : "\x08"  # Control H
key Delete    : "\x7f"

# These codes are for the VT420pc
# The Ansi mode (i.e. VT100 mode) is set by
# an escape sequence

key Up   -Shift-Ansi : "\EA"
key Down -Shift-Ansi : "\EB"
key Right-Shift-Ansi : "\EC"
key Left -Shift-Ansi : "\ED"

# VT100 emits a mode bit together
# with the arrow keys.The AppCuKeys
# mode is set by an escape sequence.

key Up   -Shift+Ansi+AppCuKeys : "\EOA"
key Down -Shift+Ansi+AppCuKeys : "\EOB"
key Right-Shift+Ansi+AppCuKeys : "\EOC"
key Left -Shift+Ansi+AppCuKeys : "\EOD"

key Up   -Shift+Ansi-AppCuKeys : "\E[A"
key Down -Shift+Ansi-AppCuKeys : "\E[B"
key Right-Shift+Ansi-AppCuKeys : "\E[C"
key Left -Shift+Ansi-AppCuKeys : "\E[D"

# function keys

key F1 -Shift    : "\E[OP"     # F1 as defined by vt100
key F2 -Shift    : "\E[OQ"     # F2 as defined by vt100
key F3 -Shift    : "\E[OR"     # F3 as defined by vt100
key F4 -Shift    : "\E[OS"     # F4 as defined by vt100
key F5 -Shift    : "\E[15~"    # F5 as defined by X11R6 xterm
key F6 -Shift    : "\E[17~"    # F7 as defined by vt220
key F7 -Shift    : "\E[18~"    # F7 as defined by vt220
key F8 -Shift    : "\E[19~"    # F8 as defined by vt220
key F9 -Shift    : "\E[20~"    # F9 as defined by vt220
key F10-Shift    : "\E[21~"    # F10 as defined by vt220
key F11-Shift    : "\E[23~"    # F11 as defined by vt220
key F12-Shift    : "\E[24~"    # F12 as defined by vt220
#
# Shift F1-F12 (F13-F20)
#
key F3 +Shift    : "\E[25~"    # F13 as defined by vt220
key F4 +Shift    : "\E[26~"    # F14 as defined by vt220
key F5 +Shift    : "\E[28~"    # F15 as defined by vt220
key F6 +Shift    : "\E[29~"    # F16 as defined by vt220
key F7 +Shift    : "\E[31~"    # F17 as defined by vt220
key F8 +Shift    : "\E[32~"    # F18 as defined by vt220
key F9 +Shift    : "\E[33~"    # F19 as defined by vt220
key F10+Shift    : "\E[34~"    # F20 as defined by vt220
key F11+Shift    : "\E[20;2~"  # F21 as defined by X11R6 xterm
key F12+Shift    : "\E[21;2~"  # F22 as defined by X11R6 xterm

key Home   : "\E[H"
key End    : "\E[F"

key Prior -Shift : "\E[5~"
key Next  -Shift : "\E[6~"
key Insert-Shift : "\E[2~"

# Keypad-Enter. See comment on Return above.

key Enter+NewLine : "\r\n"
key Enter-NewLine : "\r"

key Space +Control : "\x00"

# some of keys are used by konsole.

key Up    +Shift   : scrollLineUp
key Prior +Shift   : scrollPageUp
key Down  +Shift   : scrollLineDown
key Next  +Shift   : scrollPageDown

key ScrollLock     : scrollLock

#----------------------------------------------------------

# keypad characters as offered by Qt
# cannot be recognized as such.

#----------------------------------------------------------

# Following other strings as emitted by konsole.


On Fri, 2006-02-17 at 10:59 -0700, Paul Lemmons wrote:

> OK, I give up. This is probably a trivial question but I have
> exhausted my resources hunting for it. 
> 
> I have an application that, when run, gets to a point and asks me to
> press "F17" to continue. I am using Knonsole and I have tried every
> combination of keys that would make sense to send an "F17" (and a few
> that did not make sense) with no cheese down any hole. I am clearly
> missing something. Any assistance would be appreciated. 
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060223/345b3414/attachment-0001.htm>


More information about the fedora-list mailing list