tty-internal.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /** \file tty-internal.h
  2. * \brief Header: internal stuff 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 _POSIX_VDISABLE
  10. #define NULL_VALUE _POSIX_VDISABLE
  11. #else
  12. #define NULL_VALUE 255
  13. #endif
  14. /*** enums ***************************************************************************************/
  15. /*** structures declarations (and typedefs of structures)*****************************************/
  16. /*** global variables defined in .c file *********************************************************/
  17. /* The mouse is currently: TRUE - enabled, FALSE - disabled */
  18. extern gboolean mouse_enabled;
  19. /* terminal ca capabilities */
  20. extern char *smcup;
  21. extern char *rmcup;
  22. /* pipe to handle SIGWINCH */
  23. extern int sigwinch_pipe[2];
  24. /*** declarations of public functions ************************************************************/
  25. void tty_create_winch_pipe (void);
  26. void tty_destroy_winch_pipe (void);
  27. char *mc_tty_normalize_from_utf8 (const char *str);
  28. void tty_init_xterm_support (gboolean is_xterm);
  29. int tty_lowlevel_getch (void);
  30. void tty_colorize_area (int y, int x, int rows, int cols, int color);
  31. /*** inline functions ****************************************************************************/
  32. #endif /* MC_TTY_INTERNAL_H */