You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
151 lines
3.6 KiB
151 lines
3.6 KiB
# [KeyTab] Konsole Keyboard Table |
|
# |
|
# -------------------------------------------------------------- |
|
|
|
hdr "(NOT FUNCTIONAL, YET) Linux" |
|
|
|
# -------------------------------------------------------------- |
|
# |
|
# 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. |
|
# |
|
# konsole provides another mode that allows to configure |
|
# the keyboard to do a backspace related trick. This mode |
|
# can be changed by konsole's configuration menu. |
|
# |
|
# - BsHack : effects Backspace and Delete key. |
|
# |
|
# 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" |
|
|
|
# VT100 can add an extra \n after return. |
|
# The NewLine mode is set by an escape sequence. |
|
|
|
key Return-Alt-NewLine : "\r" |
|
key Return-Alt+NewLine : "\r\n" |
|
|
|
key Return+Alt-NewLine : "\E\r" |
|
key Return+Alt+NewLine : "\E\r\n" |
|
|
|
# Some desperately try to save the ^H. |
|
# The BsHack mode is set by regular |
|
# configurations means for convenience. |
|
|
|
key Backspace-BsHack : "\x08" |
|
key Delete -BsHack : "\x7f" |
|
|
|
key Backspace+BsHack : "\x7f" |
|
key Delete +BsHack : "\E[3~" |
|
|
|
# These codes are for the VT52 mode of VT100 |
|
# 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-Ansi : "\EC" |
|
key Left -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+Ansi+AppCuKeys : "\EOC" |
|
key Left +Ansi+AppCuKeys : "\EOD" |
|
|
|
key Up -Shift+Ansi-AppCuKeys : "\E[A" |
|
key Down -Shift+Ansi-AppCuKeys : "\E[B" |
|
key Right+Ansi-AppCuKeys : "\E[C" |
|
key Left +Ansi-AppCuKeys : "\E[D" |
|
|
|
# linux functions keys F1-F5 differ from xterm |
|
# |
|
# F1 : "\E[[A" |
|
# F2 : "\E[[B" |
|
# F3 : "\E[[C" |
|
# F4 : "\E[[D" |
|
# F5 : "\E[[E" |
|
|
|
# function keys |
|
|
|
key F1 : "\E[11~" |
|
key F2 : "\E[12~" |
|
key F3 : "\E[13~" |
|
key F4 : "\E[14~" |
|
key F5 : "\E[15~" |
|
key F6 : "\E[17~" |
|
key F7 : "\E[18~" |
|
key F8 : "\E[19~" |
|
key F9 : "\E[20~" |
|
key F10 : "\E[21~" |
|
key F11 : "\E[23~" |
|
key F12 : "\E[24~" |
|
|
|
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 Insert+Shift : emitSelection |
|
|
|
#---------------------------------------------------------- |
|
|
|
# keypad characters as offered by Qt |
|
# cannot be recognized as such. |
|
|
|
#---------------------------------------------------------- |
|
|
|
# Following other strings as emitted by konsole.
|
|
|