/***********************************************************************

                       CSA Library, Free Evaluation Version 2.2.0 
                                           Release: June 9th 1997 

       Function to read from the keyboard.
       Appropriate macro's are defined for virtually all
       key combinations.
       The input of cskey() is NOT echoed to the screen.

                                           Copyright(c) 1994-1997 
                                                          ComBits 
                                                  The Netherlands 
***********************************************************************/

#ifndef __CSKEYS_H
#define __CSKEYS_H


int cskey(void);

#define BACKSPACE                8
#define TAB                      9
#define ENTER                   13
#define ESC                     27
#define SPACE                   32
#define KEY_a                 (int)'a'
#define KEY_b                 (int)'b'
#define KEY_c                 (int)'c'
#define KEY_d                 (int)'d'
#define KEY_e                 (int)'e'
#define KEY_f                 (int)'f'
#define KEY_g                 (int)'g'
#define KEY_h                 (int)'h'
#define KEY_i                 (int)'i'
#define KEY_j                 (int)'j'
#define KEY_k                 (int)'k'
#define KEY_l                 (int)'l'
#define KEY_m                 (int)'m'
#define KEY_n                 (int)'n'
#define KEY_o                 (int)'o'
#define KEY_p                 (int)'p'
#define KEY_q                 (int)'q'
#define KEY_r                 (int)'r'
#define KEY_s                 (int)'s'
#define KEY_t                 (int)'t'
#define KEY_u                 (int)'u'
#define KEY_v                 (int)'v'
#define KEY_w                 (int)'w'
#define KEY_x                 (int)'x'
#define KEY_y                 (int)'y'
#define KEY_z                 (int)'z'
#define KEY_A                 (int)'A'
#define KEY_B                 (int)'B'
#define KEY_C                 (int)'C'
#define KEY_D                 (int)'D'
#define KEY_E                 (int)'E'
#define KEY_F                 (int)'F'
#define KEY_G                 (int)'G'
#define KEY_H                 (int)'H'
#define KEY_I                 (int)'I'
#define KEY_J                 (int)'J'
#define KEY_K                 (int)'K'
#define KEY_L                 (int)'L'
#define KEY_M                 (int)'M'
#define KEY_N                 (int)'N'
#define KEY_O                 (int)'O'
#define KEY_P                 (int)'P'
#define KEY_Q                 (int)'Q'
#define KEY_R                 (int)'R'
#define KEY_S                 (int)'S'
#define KEY_T                 (int)'T'
#define KEY_U                 (int)'U'
#define KEY_V                 (int)'V'
#define KEY_W                 (int)'W'
#define KEY_X                 (int)'X'
#define KEY_Y                 (int)'Y'
#define KEY_Z                 (int)'Z'
#define KEY_1                 (int)'1'
#define KEY_2                 (int)'2'
#define KEY_3                 (int)'3'
#define KEY_4                 (int)'4'
#define KEY_5                 (int)'5'
#define KEY_6                 (int)'6'
#define KEY_7                 (int)'7'
#define KEY_8                 (int)'8'
#define KEY_9                 (int)'9'
#define KEY_0                 (int)'0'
#define CTRL_A                1
#define CTRL_B                2
#define CTRL_C                3
#define CTRL_D                4
#define CTRL_E                5
#define CTRL_F                6
#define CTRL_G                7
#define CTRL_H                8
#define CTRL_I                9
#define CTRL_J                10
#define CTRL_K                11
#define CTRL_L                12
#define CTRL_M                13
#define CTRL_N                14
#define CTRL_O                15
#define CTRL_P                16
#define CTRL_Q                17
#define CTRL_R                18
#define CTRL_S                19
#define CTRL_T                20
#define CTRL_U                21
#define CTRL_V                22
#define CTRL_W                23
#define CTRL_X                24
#define CTRL_Y                25
#define CTRL_Z                26
#define ALT_A             256+30
#define ALT_B             256+48
#define ALT_C             256+46
#define ALT_D             256+32
#define ALT_E             256+18
#define ALT_F             256+33
#define ALT_G             256+34
#define ALT_H             256+35
#define ALT_I             256+23
#define ALT_J             256+36
#define ALT_K             256+37
#define ALT_L             256+38
#define ALT_M             256+50
#define ALT_N             256+49
#define ALT_O             256+24
#define ALT_P             256+25
#define ALT_Q             256+16
#define ALT_R             256+19
#define ALT_S             256+31
#define ALT_T             256+20
#define ALT_U             256+22
#define ALT_V             256+47
#define ALT_W             256+17
#define ALT_X             256+45
#define ALT_Y             256+21
#define ALT_Z             256+44
#define ALT_F1            256+104
#define ALT_F2            256+105
#define ALT_F3            256+106
#define ALT_F4            256+107
#define ALT_F5            256+108
#define ALT_F6            256+109
#define ALT_F7            256+110
#define ALT_F8            256+111
#define ALT_F9            256+112
#define ALT_F10           256+113
#define ALT_F11           256+139
#define ALT_F12           256+140
#define ALT_END               415
#define ALT_HOME              407
#define ALT_INSERT            418
#define ALT_PAGE_DOWN         417
#define ALT_PAGE_UP           409
#define ALT_DELETE            419
#define ALT_CURSOR_DOWN       416
#define ALT_CURSOR_LEFT       411
#define ALT_CURSOR_RIGHT      413
#define ALT_CURSOR_UP         408
#define CTRL_CURSOR_DOWN  256+145
#define CTRL_CURSOR_LEFT  256+115
#define CTRL_CURSOR_RIGHT 256+116
#define CTRL_CURSOR_UP    256+141
#define CTRL_DELETE       256+147
#define CTRL_END          256+117
#define CTRL_F1           256+94
#define CTRL_F2           256+95
#define CTRL_F3           256+96
#define CTRL_F4           256+97
#define CTRL_F5           256+98
#define CTRL_F6           256+99
#define CTRL_F7           256+100
#define CTRL_F8           256+101
#define CTRL_F9           256+102
#define CTRL_F10          256+103
#define CTRL_F11          256+137
#define CTRL_F12          256+138
#define CTRL_HOME         256+119
#define CTRL_PAGE_DOWN    256+118
#define CTRL_PAGE_UP      256+132
#define CURSOR_DOWN       256+80
#define CURSOR_LEFT       256+75
#define CURSOR_RIGHT      256+77
#define CURSOR_UP         256+72
#define DELETE            256+83
#define END               256+79
#define F1                256+59
#define F2                256+60
#define F3                256+61
#define F4                256+62
#define F5                256+63
#define F6                256+64
#define F7                256+65
#define F8                256+66
#define F9                256+67
#define F10               256+68
#define F11               256+133
#define F12               256+134
#define HOME              256+71
#define INSERT            256+82
#define PAGE_DOWN         256+81
#define PAGE_UP           256+73
#define SHIFT_F1          256+84
#define SHIFT_F2          256+85
#define SHIFT_F3          256+86
#define SHIFT_F4          256+87
#define SHIFT_F5          256+88
#define SHIFT_F6          256+89
#define SHIFT_F7          256+90
#define SHIFT_F8          256+91
#define SHIFT_F9          256+92
#define SHIFT_F10         256+93
#define SHIFT_F11         256+135
#define SHIFT_F12         256+136
#define SHIFT_TAB         256+15


#endif
