Merge branch '2452_handle_baudrate_error'
[midnight-commander.git] / lib / tty / tty-slang.h
blobeeaade388af4ace927e69cf2626aa2e5bb9aeaa5
2 #ifndef MC__TTY_SLANG_H
3 #define MC__TTY_SLANG_H
5 #include <slang.h>
7 /*** typedefs(not structures) and defined constants **********************************************/
9 #define KEY_F(x) (1000 + x)
11 #define ACS_VLINE SLSMG_VLINE_CHAR
12 #define ACS_HLINE SLSMG_HLINE_CHAR
13 #define ACS_LTEE SLSMG_LTEE_CHAR
14 #define ACS_RTEE SLSMG_RTEE_CHAR
15 #define ACS_TTEE SLSMG_UTEE_CHAR
16 #define ACS_BTEE SLSMG_DTEE_CHAR
17 #define ACS_ULCORNER SLSMG_ULCORN_CHAR
18 #define ACS_LLCORNER SLSMG_LLCORN_CHAR
19 #define ACS_URCORNER SLSMG_URCORN_CHAR
20 #define ACS_LRCORNER SLSMG_LRCORN_CHAR
21 #define ACS_PLUS SLSMG_PLUS_CHAR
23 #define COLS SLtt_Screen_Cols
24 #define LINES SLtt_Screen_Rows
26 #define ENABLE_SHADOWS 1
28 /*** enums ***************************************************************************************/
30 enum
32 KEY_BACKSPACE = 400,
33 KEY_END, KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT,
34 KEY_HOME, KEY_A1, KEY_C1, KEY_NPAGE, KEY_PPAGE, KEY_IC,
35 KEY_ENTER, KEY_DC, KEY_SCANCEL, KEY_BTAB
38 /*** structures declarations (and typedefs of structures)*****************************************/
40 /*** global variables defined in .c file *********************************************************/
42 extern int reset_hp_softkeys;
44 /*** declarations of public functions ************************************************************/
46 /*** inline functions ****************************************************************************/
48 #endif /* MC_TTY_SLANG_H */