Please enable JavaScript to view this site.

ESL Documentation

Navigation: ESL Documentation > ESL Programmers Reference > ESL Language Elements

Keyboard Mapping Table and Escape Sequences

Scroll Prev Top Next More

The following table lists the character codes generated within ESL for various keys and key combinations typed on the keyboard.

ESL can respond to these character codes via the response to char from keyboard and response to line from keyboard response definitions.

Key or Key Combination

Character(s) Generated within ESL

Backspace

"\b" (or "\^H")

Enter

"\n" (or "\^J")

Esc

"\e\e" (or "\^[\^[")

Tab *

"\^I" (or "\t")

BackTab

"\^BT"

CTRL+_

"\^_"

CTRL+@

"\^C@"

CTRL+A

"\^A"

CTRL+B

"\^F\^B"

CTRL+C

"\^F\^C"

CTRL+D

"\^F\^D"

CTRL+E

"\^F\^E"

CTRL+F

"\^F\^F"

CTRL+G

"\^G"

CTRL+H

"\^H" (or "\b")

CTRL+I

"\^I" (or "\t")

CTRL+J

"\^J" (or "\n")

CTRL+K

"\^K" (or "\v")

CTRL+L

"\^L" (or "\f")

CTRL+M

"\^M" (or "\r")

CTRL+N

"\^N"

CTRL+O

"\^O"

CTRL+P

"\^P"

CTRL+Q

"\^Q"

CTRL+R

"\^R"

CTRL+S

"\^S"

CTRL+T

"\^T"

CTRL+U

"\^U"

CTRL+V

"\^V"

CTRL+W

"\^W"

CTRL+X

"\^X"

CTRL+Y

"\^Y"

CTRL+Z

"\^Z"

CTRL+[

"\^[\^[" (or "\e\e")

CTRL+\

"\^\"

CTRL+]

"\^]"

CTRL+^

"\^^"

Alt+A

Reserved by Windows

Alt+B

Reserved by Windows

Alt+C

Reserved by Windows

Alt+D

Reserved by Windows

Alt+F

Reserved by Windows

Alt+G

Reserved by Windows

Alt+H

Reserved by Windows

Alt+I

Reserved by Windows

Alt+J

Reserved by Windows

Alt+K

Reserved by Windows

Alt+L

Reserved by Windows

Alt+M

Reserved by Windows

Alt+N

Reserved by Windows

Alt+O

Reserved by Windows

Alt+P

Reserved by Windows

Alt+Q

Reserved by Windows

Alt+R

Reserved by Windows

Alt+S

Reserved by Windows

Alt+T

Reserved by Windows

Alt+U

Reserved by Windows

Alt+V

Reserved by Windows

Alt+W

Reserved by Windows

Alt+X

Reserved by Windows

Alt+Y

Reserved by Windows

Alt+Z

Reserved by Windows

F1

"\^F!" *

F2

"\^F2"

F4

"\^F4"

F5

"\^F5"

F6

"\^F6"

F7

"\^F7"

F8

"\^F8"

F9

"\^F9"

F10

Reserved by Windows

F11

"\^F_"

F12

"\^F+"

Shift+F1

"\^B1"

Shift+F2

"\^B2"

Shift+F3

"\^B3"

Shift+F4

"\^B4"

Shift+F5

"\^B5"

Shift+F6

"\^B6"

Shift+F7

"\^B7"

Shift+F8

"\^B8"

Shift+F9

"\^B9"

Shift+F10

Reserved by Windows

Shift+F11

"\^B_"

Shift+F12

"\^B+"

Ctrl+F1

"\^C1"

Ctrl+F2

"\^C2"

Ctrl+F3

"\^C3"

Ctrl+F4

"\^C4"

Ctrl+F5

"\^C5"

Ctrl+F6

"\^C6"

Ctrl+F7

"\^C7"

Ctrl+F8

"\^C8"

Ctrl+F9

"\^C9"

Ctrl+F10

Reserved by Windows

Ctrl+F11

"\^C_"

Ctrl+F12

"\^C+"

Alt+F1

Reserved by Windows

Alt+F2

Reserved by Windows

Alt+F3

Reserved by Windows

Alt+F4

Reserved by Windows

Alt+F5

Reserved by Windows

Alt+F6

Reserved by Windows

Alt+F7

Reserved by Windows

Alt+F8

Reserved by Windows

Alt+F9

Reserved by Windows

Alt+F10

Reserved by Windows

Alt+F11

Reserved by Windows

Alt+F12

Reserved by Windows

Home

"\eH"

Up Arrow

"\eU"

Down Arrow

"\eD"

Left Arrow

"\eL"

Right Arrow

"\eR"

Page Up

"\^FT"

Page Down

"\^FB"

End

"\^FE"

Insert

"\^FI"

Delete

"\^FX"

Ctrl+Up Arrow

"\^CU"

Ctrl+Down Arrow

"\^CD"

Ctrl+Left Arrow

"\^CL"

Ctrl+Right Arrow

"\^CR"

Ctrl+Page Up

"\^CT"

Ctrl+Page Down

"\^CB"

Ctrl+Home

"\^CH"

Ctrl+End

"\^CE"

Ctrl+Print Screen

Reserved by Windows

Alt+1

Reserved by Windows

Alt+2

Reserved by Windows

Alt+3

Reserved by Windows

Alt+4

Reserved by Windows

Alt+5

Reserved by Windows

Alt+6

Reserved by Windows

Alt+7

Reserved by Windows

Alt+8

Reserved by Windows

Alt+9

Reserved by Windows

Alt+0

Reserved by Windows

Alt++

Reserved by Windows

Alt+=

Reserved by Windows




































The following table lists the alternate escape sequences for the key combinations.

Key or Key

Combination

Alternate

Escape Sequences

Quotation mark

"\""

Backslash

"\\"

Form feed (new page

"\f"

Carriage return

"\r"

Tab (vertical)

"\v"

Backspace

"\b"

Enter

"\n"

Tab (horizontal)

"\t"

Esc

"\e\e"

Ctrl+H

"\b"

Ctrl+I

"\h"

Ctrl+J

"\n"

Ctrl+K

"\v"

Ctrl+L

"\f"

Ctrl+M

"\r"

Ctrl+[

"\e\e"








































Description

For two-character sequences, you need to respond to each character separately.

When any dialog control has the focus, Windows handles all keystrokes and these characters will not generate ESL keyboard responses.

The use of the Alt key is not supported.

Exceptions

For CTRL+I and Tab, if you are compiling with the EslConfig.ini keyword KBDTABWID=0, the character generated is as shown in the table. Otherwise, the characters generated are the number of spaces required to bring the current column position to the next tab stop, where the width of the tab stop is set in KBDTABWID.

In ESL, the following keys are reserved by Windows and are unavailable for use in responses:

F1

Shift+F10

Ctrl+F10

Ctrl+PrtSc

All Alt combinations

Examples

 

# Respond to function keys

 

response to char "\^F" from keyboard

 begin guarded

         response to char "2" from keyboard # F2 typed

                 ...

 leave block

 

response to char "3" from keyboard # F3 typed

 ...

 leave block

 

...