root/lib/tty/tty-slang.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


   1 
   2 #ifndef MC__TTY_SLANG_H
   3 #define MC__TTY_SLANG_H
   4 
   5 #ifdef HAVE_SLANG_SLANG_H
   6 #include <slang/slang.h>
   7 #else
   8 #include <slang.h>
   9 #endif /* HAVE_SLANG_SLANG_H */
  10 
  11 /*** typedefs(not structures) and defined constants **********************************************/
  12 
  13 #define KEY_F(x) (1000 + x)
  14 
  15 #define ACS_VLINE    SLSMG_VLINE_CHAR
  16 #define ACS_HLINE    SLSMG_HLINE_CHAR
  17 #define ACS_LTEE     SLSMG_LTEE_CHAR
  18 #define ACS_RTEE     SLSMG_RTEE_CHAR
  19 #define ACS_TTEE     SLSMG_UTEE_CHAR
  20 #define ACS_BTEE     SLSMG_DTEE_CHAR
  21 #define ACS_ULCORNER SLSMG_ULCORN_CHAR
  22 #define ACS_LLCORNER SLSMG_LLCORN_CHAR
  23 #define ACS_URCORNER SLSMG_URCORN_CHAR
  24 #define ACS_LRCORNER SLSMG_LRCORN_CHAR
  25 #define ACS_PLUS     SLSMG_PLUS_CHAR
  26 
  27 #define COLS  SLtt_Screen_Cols
  28 #define LINES SLtt_Screen_Rows
  29 
  30 /*** enums ***************************************************************************************/
  31 
  32 enum
  33 {
  34     KEY_BACKSPACE = 400,
  35     KEY_END, KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT,
  36     KEY_HOME, KEY_A1, KEY_C1, KEY_NPAGE, KEY_PPAGE, KEY_IC,
  37     KEY_ENTER, KEY_DC, KEY_SCANCEL, KEY_BTAB
  38 };
  39 
  40 /*** structures declarations (and typedefs of structures)*****************************************/
  41 
  42 /*** global variables defined in .c file *********************************************************/
  43 
  44 extern int reset_hp_softkeys;
  45 
  46 /*** declarations of public functions ************************************************************/
  47 
  48 /*** inline functions ****************************************************************************/
  49 
  50 #endif /* MC_TTY_SLANG_H */

/* [previous][next][first][last][top][bottom][index][help]  */