root/lib/tty/tty-internal.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


   1 
   2 /** \file tty-internal.h
   3  *  \brief Header: internal stuff of the terminal controlling library
   4  */
   5 
   6 #ifndef MC__TTY_INTERNAL_H
   7 #define MC__TTY_INTERNAL_H
   8 
   9 #include "lib/global.h"         /* include <glib.h> */
  10 
  11 /*** typedefs(not structures) and defined constants **********************************************/
  12 
  13 /* Taken from S-Lang's slutty.c */
  14 #ifdef _POSIX_VDISABLE
  15 #define NULL_VALUE _POSIX_VDISABLE
  16 #else
  17 #define NULL_VALUE 255
  18 #endif
  19 
  20 /*** enums ***************************************************************************************/
  21 
  22 /*** structures declarations (and typedefs of structures)*****************************************/
  23 
  24 /*** global variables defined in .c file *********************************************************/
  25 
  26 /* The mouse is currently: TRUE - enabled, FALSE - disabled */
  27 extern gboolean mouse_enabled;
  28 
  29 /* terminal ca capabilities */
  30 extern char *smcup;
  31 extern char *rmcup;
  32 
  33 /* pipe to handle SIGWINCH */
  34 extern int sigwinch_pipe[2];
  35 
  36 /*** declarations of public functions ************************************************************/
  37 
  38 void tty_create_winch_pipe (void);
  39 void tty_destroy_winch_pipe (void);
  40 
  41 char *mc_tty_normalize_from_utf8 (const char *str);
  42 void tty_init_xterm_support (gboolean is_xterm);
  43 int tty_lowlevel_getch (void);
  44 
  45 void tty_colorize_area (int y, int x, int rows, int cols, int color);
  46 
  47 /*** inline functions ****************************************************************************/
  48 
  49 #endif /* MC_TTY_INTERNAL_H */

/* [previous][next][first][last][top][bottom][index][help]  */