iPXE
Macros | Functions
keys.h File Reference

Key definitions. More...

Go to the source code of this file.

Macros

#define NUL   0x00
 
#define CTRL_A   0x01
 
#define CTRL_B   0x02
 
#define CTRL_C   0x03
 
#define CTRL_D   0x04
 
#define CTRL_E   0x05
 
#define CTRL_F   0x06
 
#define CTRL_G   0x07
 
#define CTRL_H   0x08
 
#define CTRL_I   0x09
 
#define CTRL_J   0x0a
 
#define CTRL_K   0x0b
 
#define CTRL_L   0x0c
 
#define CTRL_M   0x0d
 
#define CTRL_N   0x0e
 
#define CTRL_O   0x0f
 
#define CTRL_P   0x10
 
#define CTRL_Q   0x11
 
#define CTRL_R   0x12
 
#define CTRL_S   0x13
 
#define CTRL_T   0x14
 
#define CTRL_U   0x15
 
#define CTRL_V   0x16
 
#define CTRL_W   0x17
 
#define CTRL_X   0x18
 
#define CTRL_Y   0x19
 
#define CTRL_Z   0x1a
 
#define BACKSPACE   CTRL_H
 
#define TAB   CTRL_I
 
#define LF   CTRL_J
 
#define CR   CTRL_M
 
#define ESC   0x1b
 
#define KEY_ANSI(n, terminator)   ( 0x100 * ( (n) + 1 ) + (terminator) )
 
#define KEY_ANSI_N(key)   ( ( (key) / 0x100 ) - 1 )
 
#define KEY_ANSI_TERMINATOR(key)   ( (key) & 0xff )
 
#define KEY_MIN   0x101
 
#define KEY_UP   KEY_ANSI ( 0, 'A' )
 Up arrow. More...
 
#define KEY_DOWN   KEY_ANSI ( 0, 'B' )
 Down arrow. More...
 
#define KEY_RIGHT   KEY_ANSI ( 0, 'C' )
 Right arrow. More...
 
#define KEY_LEFT   KEY_ANSI ( 0, 'D' )
 Left arrow. More...
 
#define KEY_END   KEY_ANSI ( 0, 'F' )
 End. More...
 
#define KEY_HOME   KEY_ANSI ( 0, 'H' )
 Home. More...
 
#define KEY_IC   KEY_ANSI ( 2, '~' )
 Insert. More...
 
#define KEY_DC   KEY_ANSI ( 3, '~' )
 Delete. More...
 
#define KEY_PPAGE   KEY_ANSI ( 5, '~' )
 Page up. More...
 
#define KEY_NPAGE   KEY_ANSI ( 6, '~' )
 Page down. More...
 
#define KEY_F5   KEY_ANSI ( 15, '~' )
 F5. More...
 
#define KEY_F6   KEY_ANSI ( 17, '~' )
 F6. More...
 
#define KEY_F7   KEY_ANSI ( 18, '~' )
 F7. More...
 
#define KEY_F8   KEY_ANSI ( 19, '~' )
 F8 (for PXE) More...
 
#define KEY_F9   KEY_ANSI ( 20, '~' )
 F9. More...
 
#define KEY_F10   KEY_ANSI ( 21, '~' )
 F10. More...
 
#define KEY_F11   KEY_ANSI ( 23, '~' )
 F11. More...
 
#define KEY_F12   KEY_ANSI ( 24, '~' )
 F12. More...
 
#define KEY_BACKSPACE   BACKSPACE
 
#define KEY_ENTER   LF
 

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 

Detailed Description

Key definitions.

Definition in file keys.h.

Macro Definition Documentation

◆ NUL

#define NUL   0x00

Definition at line 17 of file keys.h.

◆ CTRL_A

#define CTRL_A   0x01

Definition at line 18 of file keys.h.

◆ CTRL_B

#define CTRL_B   0x02

Definition at line 19 of file keys.h.

◆ CTRL_C

#define CTRL_C   0x03

Definition at line 20 of file keys.h.

◆ CTRL_D

#define CTRL_D   0x04

Definition at line 21 of file keys.h.

◆ CTRL_E

#define CTRL_E   0x05

Definition at line 22 of file keys.h.

◆ CTRL_F

#define CTRL_F   0x06

Definition at line 23 of file keys.h.

◆ CTRL_G

#define CTRL_G   0x07

Definition at line 24 of file keys.h.

◆ CTRL_H

#define CTRL_H   0x08

Definition at line 25 of file keys.h.

◆ CTRL_I

#define CTRL_I   0x09

Definition at line 26 of file keys.h.

◆ CTRL_J

#define CTRL_J   0x0a

Definition at line 27 of file keys.h.

◆ CTRL_K

#define CTRL_K   0x0b

Definition at line 28 of file keys.h.

◆ CTRL_L

#define CTRL_L   0x0c

Definition at line 29 of file keys.h.

◆ CTRL_M

#define CTRL_M   0x0d

Definition at line 30 of file keys.h.

◆ CTRL_N

#define CTRL_N   0x0e

Definition at line 31 of file keys.h.

◆ CTRL_O

#define CTRL_O   0x0f

Definition at line 32 of file keys.h.

◆ CTRL_P

#define CTRL_P   0x10

Definition at line 33 of file keys.h.

◆ CTRL_Q

#define CTRL_Q   0x11

Definition at line 34 of file keys.h.

◆ CTRL_R

#define CTRL_R   0x12

Definition at line 35 of file keys.h.

◆ CTRL_S

#define CTRL_S   0x13

Definition at line 36 of file keys.h.

◆ CTRL_T

#define CTRL_T   0x14

Definition at line 37 of file keys.h.

◆ CTRL_U

#define CTRL_U   0x15

Definition at line 38 of file keys.h.

◆ CTRL_V

#define CTRL_V   0x16

Definition at line 39 of file keys.h.

◆ CTRL_W

#define CTRL_W   0x17

Definition at line 40 of file keys.h.

◆ CTRL_X

#define CTRL_X   0x18

Definition at line 41 of file keys.h.

◆ CTRL_Y

#define CTRL_Y   0x19

Definition at line 42 of file keys.h.

◆ CTRL_Z

#define CTRL_Z   0x1a

Definition at line 43 of file keys.h.

◆ BACKSPACE

#define BACKSPACE   CTRL_H

Definition at line 45 of file keys.h.

◆ TAB

#define TAB   CTRL_I

Definition at line 46 of file keys.h.

◆ LF

#define LF   CTRL_J

Definition at line 47 of file keys.h.

◆ CR

#define CR   CTRL_M

Definition at line 48 of file keys.h.

◆ ESC

#define ESC   0x1b

Definition at line 49 of file keys.h.

◆ KEY_ANSI

#define KEY_ANSI (   n,
  terminator 
)    ( 0x100 * ( (n) + 1 ) + (terminator) )

Definition at line 60 of file keys.h.

◆ KEY_ANSI_N

#define KEY_ANSI_N (   key)    ( ( (key) / 0x100 ) - 1 )

Definition at line 61 of file keys.h.

◆ KEY_ANSI_TERMINATOR

#define KEY_ANSI_TERMINATOR (   key)    ( (key) & 0xff )

Definition at line 62 of file keys.h.

◆ KEY_MIN

#define KEY_MIN   0x101

Definition at line 64 of file keys.h.

◆ KEY_UP

#define KEY_UP   KEY_ANSI ( 0, 'A' )

Up arrow.

Definition at line 65 of file keys.h.

◆ KEY_DOWN

#define KEY_DOWN   KEY_ANSI ( 0, 'B' )

Down arrow.

Definition at line 66 of file keys.h.

◆ KEY_RIGHT

#define KEY_RIGHT   KEY_ANSI ( 0, 'C' )

Right arrow.

Definition at line 67 of file keys.h.

◆ KEY_LEFT

#define KEY_LEFT   KEY_ANSI ( 0, 'D' )

Left arrow.

Definition at line 68 of file keys.h.

◆ KEY_END

#define KEY_END   KEY_ANSI ( 0, 'F' )

End.

Definition at line 69 of file keys.h.

◆ KEY_HOME

#define KEY_HOME   KEY_ANSI ( 0, 'H' )

Home.

Definition at line 70 of file keys.h.

◆ KEY_IC

#define KEY_IC   KEY_ANSI ( 2, '~' )

Insert.

Definition at line 71 of file keys.h.

◆ KEY_DC

#define KEY_DC   KEY_ANSI ( 3, '~' )

Delete.

Definition at line 72 of file keys.h.

◆ KEY_PPAGE

#define KEY_PPAGE   KEY_ANSI ( 5, '~' )

Page up.

Definition at line 73 of file keys.h.

◆ KEY_NPAGE

#define KEY_NPAGE   KEY_ANSI ( 6, '~' )

Page down.

Definition at line 74 of file keys.h.

◆ KEY_F5

#define KEY_F5   KEY_ANSI ( 15, '~' )

F5.

Definition at line 75 of file keys.h.

◆ KEY_F6

#define KEY_F6   KEY_ANSI ( 17, '~' )

F6.

Definition at line 76 of file keys.h.

◆ KEY_F7

#define KEY_F7   KEY_ANSI ( 18, '~' )

F7.

Definition at line 77 of file keys.h.

◆ KEY_F8

#define KEY_F8   KEY_ANSI ( 19, '~' )

F8 (for PXE)

Definition at line 78 of file keys.h.

◆ KEY_F9

#define KEY_F9   KEY_ANSI ( 20, '~' )

F9.

Definition at line 79 of file keys.h.

◆ KEY_F10

#define KEY_F10   KEY_ANSI ( 21, '~' )

F10.

Definition at line 80 of file keys.h.

◆ KEY_F11

#define KEY_F11   KEY_ANSI ( 23, '~' )

F11.

Definition at line 81 of file keys.h.

◆ KEY_F12

#define KEY_F12   KEY_ANSI ( 24, '~' )

F12.

Definition at line 82 of file keys.h.

◆ KEY_BACKSPACE

#define KEY_BACKSPACE   BACKSPACE

Definition at line 87 of file keys.h.

◆ KEY_ENTER

#define KEY_ENTER   LF

Definition at line 88 of file keys.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )