:: limine / common / lib / getchar.h 702 B raw

1
#ifndef LIB__GETCHAR_H__
2
#define LIB__GETCHAR_H__
3
4
#include <stddef.h>
5
6
#define GETCHAR_CURSOR_LEFT  (-10)
7
#define GETCHAR_CURSOR_RIGHT (-11)
8
#define GETCHAR_CURSOR_UP    (-12)
9
#define GETCHAR_CURSOR_DOWN  (-13)
10
#define GETCHAR_DELETE       (-14)
11
#define GETCHAR_END          (-15)
12
#define GETCHAR_HOME         (-16)
13
#define GETCHAR_PGUP         (-17)
14
#define GETCHAR_PGDOWN       (-18)
15
#define GETCHAR_F10          (-19)
16
#define GETCHAR_ESCAPE       (-20)
17
18
#if defined (BIOS)
19
#   define GETCHAR_RCTRL 0x4
20
#   define GETCHAR_LCTRL GETCHAR_RCTRL
21
#elif defined (UEFI)
22
#   define GETCHAR_RCTRL EFI_RIGHT_CONTROL_PRESSED
23
#   define GETCHAR_LCTRL EFI_LEFT_CONTROL_PRESSED
24
#endif
25
26
int getchar(void);
27
28
#endif
tab: 248 wrap: offon