#ifndef _KEYDEF_H_
#define _KEYDEF_H_

#define CTRLA  1
#define CTRLB  2
#define CTRLC  3
#define CTRLD  4
#define CTRLE  5
#define CTRLF  6
#define CTRLG  7
#define CTRLH  8
#define CTRLI  9
#define CTRLJ  10
#define CTRLK  11
#define CTRLL  12
#define CTRLM  13
#define CTRLN  14
#define CTRLO  15
#define CTRLP  16
#define CTRLQ  17
#define CTRLR  18
#define CTRLS  19
#define CTRLT  20
#define CTRLU  21
#define CTRLV  22
#define CTRLW  23
#define CTRLX  24
#define CTRLY  25
#define CTRLZ  26
#define CTRL3  27
#define CTRL4  28
#define CTRL5  29
#define CTRL6  30
#define CTRL7  31

#define BACKSP0		8			/* backspace */
#define BACKSP1		127			/* backspace */  
#define LF		10
#define CR		13


/* escape seqence */
#define ESC		27

/* 27 area */
#define ESC_ALT		0x1b

/* 91 area */
#define ESC_PAD		0x5b
#define KEY_HOME	0x7e31
#define KEY_INSERT	0x7e32
#define KEY_DELETE	0x7e33
#define KEY_END		0x7e34
#define KEY_UP		0x0041
#define KEY_DOWN	0x0042
#define KEY_RIGHT	0x0043
#define KEY_LEFT	0x0044

#endif
