Character Values for Terminal Input

Character Values for Terminal Input

Top  Previous  Next

 

KEYIN() and KEYCODE()

 

The table below shows the keys that produce each decimal character value from the KEYIN() function on Windows systems using QMConsole, on all systems using QMTerm, or when using KEYCODE() to decode key sequences.

 

 

 

0

1

2

3

4

5

6

7

8

9

00x

 

Ctrl-A

Ctrl-B

Ctrl-C

Ctrl-D

Ctrl-E

Ctrl-F

Ctrl-G

Ctrl-H

Ctrl-I

 

 

 

 

 

 

 

 

 

Bsp

Tab

01x

Ctrl-J

Ctrl-K

Ctrl-L

Ctrl-M

Ctrl-N

Ctrl-O

Ctrl-P

Ctrl-Q

Ctrl-R

Ctrl-S

 

Ctrl-rtn

 

 

Return

 

 

 

 

 

 

02x

Ctrl-T

Ctrl-U

Ctrl-V

Ctrl-W

Ctrl-X

Ctrl-Y

Ctrl-Z

Esc

 

Ctrl-}

03x

Ctrl-^

Ctrl-_

Space

!

"

#

$

%

&

'

04x

(

)

*

+

,

-

.

/

0

1

05x

2

3

4

5

6

7

8

9

:

;

06x

<

=

>

?

@

A

B

C

D

E

07x

F

G

H

I

J

K

L

M

N

O

08x

P

Q

R

S

T

U

V

W

X

Y

09x

Z

[

\

]

^

_

`

a

b

c

10x

d

e

f

g

h

i

j

k

l

m

11x

n

o

p

q

r

s

t

u

v

w

12x

x

y

z

 

|

}

~

Ctrl-Bsp

F1

F2

13x

F3

F4

F5

F6

F7

F8

F9

F10

F11

F12

14x

Ctrl-F1

Ctrl-F2

Ctrl-F3

Ctrl-F4

Ctrl-F5

Ctrl-F6

Ctrl-F7

Ctrl-F8

Ctrl-F9

Ctrl-F10

15x

Ctrl-F11

Ctrl-F12

Alt-F1

Alt-F2

Alt-F3

Alt-F4

Alt-F5

Alt-F6

Alt-F7

Alt-F8

16x

Alt-F9

Alt-F10

Alt-F11

Alt-F12

Sh-F1

Sh-F2

Sh-F3

Sh-F4

Sh-F5

Sh-F6

17x

Sh-F7

Sh-F8

Sh-F9

Sh-F10

Sh-F11

Sh-F12

 

 

 

 

18x

 

 

 

 

 

 

 

 

 

 

19x

 

 

 

 

 

 

 

 

 

 

20x

Mouse

 

 

CsrLeft

CsrRgt

CsrUp

CsrDn

Pg Up

Pg Dn

Home

21x

End

Insert

Delete

Ctrl-Tab

C-PgUp

C-PgDn

C-Home

C-End

User0

User1

22x

User2

User3

User4

User5

User6

User7

User8

User9

 

 

23x

 

 

 

 

 

 

 

 

 

 

24x

 

 

 

 

 

 

 

 

 

 

25x

 

 

 

 

 

 

 

 

 

 

 

 

Character value tokens are defined in the KEYIN.H record of the SYSCOM file. Codes User0 to User9 are only returned by the KEYCODE() function.

 

 

KEYINV() and KEYCODEV()

 

The table below shows the code point values returned by the KEYINV() for special characters on Windows and by use of KEYCODEV() on all systems.

 

 

U+F88x

U+F89x

U+F8Ax

U+F8Bx

U+F8Cx

U+F8Dx

U+F8Ex

0

F1

Ctrl-F5

Alt-F9

 

 

Page Down

User 6

1

F2

Ctrl-F6

Alt-F10

 

 

Home

User 7

2

F3

Ctrl-F7

Alt-F11

 

 

End

User 8

3

F4

Ctrl-F8

Alt-F12

 

 

Insert

User 9

4

F5

Ctrl-F9

Shift-F1

 

 

Delete

 

5

F6

Ctrl-F10

Shift-F2

 

 

Ctrl-Tab

 

6

F7

Ctrl-F11

Shift-F3

 

 

Ctrl-Pg Up

 

7

F8

Ctrl-F12

Shift-F4

 

 

Ctrl-Pg Down

 

8

F9

Alt-F1

Shift-F5

 

Mouse

Ctrl-Home

 

9

F10

Alt-F2

Shift-F6

 

 

Ctrl-End

 

A

F11

Alt-F3

Shift-F7

 

 

User 0

 

B

F12

Alt-F4

Shift-F8

 

Csr Left

User 1

 

C

Ctrl-F1

Alt-F5

Shift-F9

 

Csr Right

User 2

 

D

Ctrl-F2

Alt-F6

Shift-F10

 

Csr Up

User 3

 

E

Ctrl-F3

Alt-F7

Shift-F11

 

Csr Down

User 4

 

F

Ctrl-F4

Alt-8

Shift-F12

 

Page Up

User 5