tty-slang.h 1.5 KB

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