#define BELL           0x07
#define BS             0x08
#define TAB            0x09
#define NEWLINE        0x0A
#define FORMFEED       0x0C
#define ENTER          0x0D
#define RETURN         0x0D
#define CR             0x0D
#define ESC            0x1B
#define SPACE          0x20
#define BACKTAB         271
#define CTRL_BS         127

#define CTRL_T           20
#define CTRL_B            2
#define CTRL_D            4
#define ALT_D           288

#define CTRL_HOME       375
#define CTRL_LEFT       371
#define CTRL_RIGHT      372
#define CTRL_END        373

#define HOME            327
#define UP              328
#define PGUP            329
#define LEFT            331
#define BOTTOM          332
#define RIGHT           333
#define FWD             333
#define END             335
#define DN              336
#define PGDN            337
#define INS             338
#define DEL             339

#define F1              315
#define F2              316
#define F3              317
#define F4              318
#define F5              319
#define F6              320
#define F7              321
#define F8              322
#define F9              323
#define F10             324

#define F11             389
#define F12             390

