CE Implement line editing
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m8s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m8s
This commit is contained in:
26
include/kb_defs.h
Normal file
26
include/kb_defs.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user