CE Implement line editing
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m8s

This commit is contained in:
2026-03-04 02:02:05 +01:00
parent 95ea80cee9
commit 81704d7df8
20 changed files with 464 additions and 229 deletions

26
include/kb_defs.h Normal file
View 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