tty-slang.h 1.4 KB

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