Keyboard Mappings

Use Option (⌥) as Meta Key

To have the Option key on the keyboard act as a  meta key, select “Use Option (⌥) as Meta key.” This is useful for computers running X11 and for some text editors.

Modifier Keys

SSH Shell uses the following symbols to represent the modifier keys (most of these are the same symbols that menus display):

Control
Option (Alt)
Meta
Shift
SSH Shell encodes function key modifiers as parameters appended before the final character of the control sequence.  As a special case, the \033O (aka. SS3) sent before F1 through F4 is altered to \033[ (aka. CSI) when sending a function key modifier as a parameter.
Code Modifiers
2
3
4 ⌥⇧
5
6 ⌃⇧
7 ⌃⌥
8 ⌃⌥⇧
9
10 ◆⇧
11 ◆⌥
12 ◆⌥⇧
13 ◆⌃
14 ◆⌃⇧
15 ◆⌃⌥
16
◆⌃⌥⇧

For example,  ⌃ + F3 would be sent as  \033[1;5R, and ⇧ + F5 would be sent as \033[15;2~

Default Keyboard Mapping

Function Keys

Key Send Text Send Text
%u — Modifiers Code
F1 \033OP
\033[1; %uP
F2 \033OQ
\033[1; %uQ
F3 \033OR \033[1; %uR
F4 \033OS \033[1; %uS
F5 \033[15~ \033[15; %u~
F6 \033[17~ \033[17; %u~
F7 \033[18~ \033[18; %u~
F8 \033[19~ \033[19; %u~
F9 \033[20~ \033[20; %u~
F10 \033[21~ \033[21; %u~
F11 \033[23~ \033[23; %u~
F12 \033[24~ \033[24; %u~
F13 \033[25~ \033[25; %u~
F14 \033[26~ \033[26; %u~
F15 \033[28~ \033[28; %u~
F16 \033[29~ \033[29; %u~
F17 \033[31~ \033[31; %u~
F18 \033[32~ \033[32; %u~
F19 \033[33~ \033[33; %u~
F20 \033[34~ \033[34; %u~

Editing Keys

Key Send Text Send Text
%u — Modifiers Code
Insert \033[2~ \033[2; %u~
⌫ Delete
\033[3~  \033[3; %u~
⇞ Page Up \033[5~ \033[5; %u~
⇟ Page Down \033[6~ \033[6; %u~

Cursor Keys

Key Send Text Send Text
DECKPAM
Send Text
%u — Modifiers Code
↖ Home \033[H \033OH \033[1; %uH
↘ End  \033[F \033OF \033[1; %uF
↑ Up \033[A \033OA \033[1; %uA
↓ Down \033[B \033OB \033[1; %uB
→ Right
\033[C \033OC \033[1; %uC
← Left \033[D \033OD \033[1; %uD

Numeric Keypad

Key Send Text Send Text
DECKPAM
␣ (space)

\033O␣
⇥ (tab)
\t  \033OI
↩ (return) \r \033OM
* (multiply) * \033Oj
+ (add) + \033Ok
, (comma) , \033Ol
- (minus) - \033Om
. (delete) . \033On
/ (divide) / \033Oo
0 (insert) 0 \033Op
1 (end) 1 \033Oq
2 (down arrow) 2 \033Or
3 (page down) 3 \033Os
4 (left arrow) 4 \033Ot
5 (begin) 5 \033Ou
6 (right arrow) 6 \033Ov
7 (home) 7 \033Ow
8 (up arrow) 8 \033Ox
9 (page up) 9 \033Oy
= (equal) = \033OX

Still need help? Contact Us Contact Us