tty-internal.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /** \file tty-internal.h
  2. * \brief Header: internal suff of the terminal controlling library
  3. */
  4. #ifndef MC__TTY_INTERNAL_H
  5. #define MC__TTY_INTERNAL_H
  6. #include "lib/global.h" /* include <glib.h> */
  7. /*** typedefs(not structures) and defined constants **********************************************/
  8. /* Taken from S-Lang's slutty.c */
  9. #ifdef ultrix /* Ultrix gets _POSIX_VDISABLE wrong! */
  10. #define NULL_VALUE -1
  11. #else
  12. #ifdef _POSIX_VDISABLE
  13. #define NULL_VALUE _POSIX_VDISABLE
  14. #else
  15. #define NULL_VALUE 255
  16. #endif
  17. #endif
  18. /*** enums ***************************************************************************************/
  19. /*** structures declarations (and typedefs of structures)*****************************************/
  20. /*** global variables defined in .c file *********************************************************/
  21. /* The mouse is currently: TRUE - enabled, FALSE - disabled */
  22. extern gboolean mouse_enabled;
  23. /* terminal ca capabilities */
  24. extern char *smcup;
  25. extern char *rmcup;
  26. /*** declarations of public functions ************************************************************/
  27. char *mc_tty_normalize_from_utf8 (const char *);
  28. void tty_init_xterm_support (gboolean is_xterm);
  29. int tty_lowlevel_getch (void);
  30. /*** inline functions ****************************************************************************/
  31. #endif /* MC_TTY_INTERNAL_H */