source: ogBrowser-Git/qtermwidget/lib/kb-layouts/linux.keytab

jenkins
Last change on this file was 64efc22, checked in by Vadim Troshchinskiy <vtroshchinskiy@…>, 19 months ago

Update qtermwidget to modern version

  • Property mode set to 100644
File size: 3.3 KB
Line 
1# [linux.keytab] Konsole Keyboard Table (Linux console keys)
2#
3# --------------------------------------------------------------
4
5# NOT TESTED, MAY NEED SOME CLEANUPS
6keyboard "Linux console"
7
8# --------------------------------------------------------------
9#
10# This configuration table allows to customize the
11# meaning of the keys.
12#
13# The syntax is that each entry has the form :
14#
15#   "key" Keyname { ("+"|"-") Modename } ":" (String|Operation)
16#
17# Keynames are those defined in <qnamespace.h> with the
18# "Qt::Key_" removed. (We'd better insert the list here)
19#
20# Mode names are :
21#
22# - Shift
23# - Alt
24# - Control
25#
26#   The VT100 emulation has two modes that can affect the
27#   sequences emitted by certain keys. These modes are
28#   under control of the client program.
29#   
30# - Newline     : effects Return and Enter key.
31# - Application : effects Up and Down key.
32#
33# - Ansi        : effects Up and Down key (This is for VT52, really).
34#
35# Operations are
36#
37# - scrollUpLine
38# - scrollUpPage
39# - scrollDownLine
40# - scrollDownPage
41#
42# - emitSelection
43#
44# If the key is not found here, the text of the
45# key event as provided by QT is emitted, possibly
46# preceded by ESC if the Alt key is pressed.
47#
48# --------------------------------------------------------------
49
50key Escape : "\E"
51key Tab    : "\t"
52
53# VT100 can add an extra \n after return.
54# The NewLine mode is set by an escape sequence.
55
56key Return-NewLine : "\r" 
57key Return+NewLine : "\r\n"
58
59# Some desperately try to save the ^H.
60
61key Backspace : "\x7f"
62key Delete    : "\E[3~"
63
64# These codes are for the VT52 mode of VT100
65# The Ansi mode (i.e. VT100 mode) is set by
66# an escape sequence
67
68key Up   -Shift-Ansi : "\EA"
69key Down -Shift-Ansi : "\EB"
70key Right-Shift-Ansi : "\EC"
71key Left -Shift-Ansi : "\ED"
72
73# VT100 emits a mode bit together
74# with the arrow keys.The AppCuKeys
75# mode is set by an escape sequence.
76
77key Up   -Shift+Ansi+AppCuKeys : "\EOA"
78key Down -Shift+Ansi+AppCuKeys : "\EOB"
79key Right-Shift+Ansi+AppCuKeys : "\EOC"
80key Left -Shift+Ansi+AppCuKeys : "\EOD"
81
82key Up   -Shift+Ansi-AppCuKeys : "\E[A"
83key Down -Shift+Ansi-AppCuKeys : "\E[B"
84key Right-Shift+Ansi-AppCuKeys : "\E[C"
85key Left -Shift+Ansi-AppCuKeys : "\E[D"
86
87key Up    -Shift+AnyMod+Ansi           : "\E[1;*A"
88key Down  -Shift+AnyMod+Ansi           : "\E[1;*B"
89key Right -Shift+AnyMod+Ansi           : "\E[1;*C"
90key Left  -Shift+AnyMod+Ansi           : "\E[1;*D"
91
92# linux functions keys F1-F5 differ from xterm
93
94key F1 : "\E[[A"
95key F2 : "\E[[B"
96key F3 : "\E[[C"
97key F4 : "\E[[D"
98key F5 : "\E[[E"
99
100key F6     : "\E[17~"
101key F7     : "\E[18~"
102key F8     : "\E[19~"
103key F9     : "\E[20~"
104key F10    : "\E[21~"
105key F11    : "\E[23~"
106key F12    : "\E[24~"
107
108key Home   : "\E[1~" 
109key End    : "\E[4~" 
110
111key PgUp    -Shift : "\E[5~" 
112key PgDown  -Shift : "\E[6~" 
113key Insert  -Shift : "\E[2~" 
114
115# Keypad-Enter. See comment on Return above.
116
117key Enter+NewLine : "\r\n"
118key Enter-NewLine : "\r" 
119
120key Space +Control : "\x00"
121
122# some of keys are used by konsole.
123
124key Up      +Shift : scrollLineUp
125key PgUp    +Shift : scrollPageUp
126key Down    +Shift : scrollLineDown
127key PgDown  +Shift : scrollPageDown
128
129key ScrollLock     : scrollLock
130
131#----------------------------------------------------------
132
133# keypad characters as offered by Qt
134# cannot be recognized as such.
135
136#----------------------------------------------------------
137
138# Following other strings as emitted by konsole.
Note: See TracBrowser for help on using the repository browser.