tty-slang.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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,
  25. KEY_UP,
  26. KEY_DOWN,
  27. KEY_LEFT,
  28. KEY_RIGHT,
  29. KEY_HOME,
  30. KEY_A1,
  31. KEY_C1,
  32. KEY_NPAGE,
  33. KEY_PPAGE,
  34. KEY_IC,
  35. KEY_ENTER,
  36. KEY_DC,
  37. KEY_SCANCEL,
  38. KEY_BTAB
  39. };
  40. /*** structures declarations (and typedefs of structures)*****************************************/
  41. /*** global variables defined in .c file *********************************************************/
  42. extern int reset_hp_softkeys;
  43. /*** declarations of public functions ************************************************************/
  44. /*** inline functions ****************************************************************************/
  45. #endif /* MC_TTY_SLANG_H */