Files
mop3/include/kb_defs.h
kamkow1 81704d7df8
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m8s
CE Implement line editing
2026-03-04 02:02:05 +01:00

27 lines
519 B
C

#ifndef _KB_DEFS_H
#define _KB_DEFS_H
#define KB_SHIFT (1 << 0)
#define KB_CTL (1 << 1)
#define KB_ALT (1 << 2)
#define KB_CAPSLOCK (1 << 3)
#define KB_NUMLOCK (1 << 4)
#define KB_SCRLLOCK (1 << 5)
#define KB_E0ESC (1 << 6)
#define KB_HOME 0xe0
#define KB_END 0xe1
#define KB_UP 0xe2
#define KB_DOWN 0xe3
#define KB_LEFT 0xe4
#define KB_RIGHT 0xe5
#define KB_PAGEUP 0xe6
#define KB_PAGEDN 0xe7
#define KB_INSERT 0xe8
#define KB_DELETE 0xe9
#define KB_CTRL(x) ((x) - '@')
#endif // _KB_DEFS_H