Merge branch '4592_clang_format'
[midnight-commander.git] / lib / tty / tty-internal.h
blob3650ccbbb6f0d57a7dbedeadd96beb753147cbc1
2 /** \file tty-internal.h
3 * \brief Header: internal stuff of the terminal controlling library
4 */
6 #ifndef MC__TTY_INTERNAL_H
7 #define MC__TTY_INTERNAL_H
9 #include "lib/global.h" // include <glib.h>
11 /*** typedefs(not structures) and defined constants **********************************************/
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
20 /*** enums ***************************************************************************************/
22 /*** structures declarations (and typedefs of structures)*****************************************/
24 /*** global variables defined in .c file *********************************************************/
26 /* The mouse is currently: TRUE - enabled, FALSE - disabled */
27 extern gboolean mouse_enabled;
29 /* terminal ca capabilities */
30 extern char *smcup;
31 extern char *rmcup;
33 /* pipe to handle SIGWINCH */
34 extern int sigwinch_pipe[2];
36 /*** declarations of public functions ************************************************************/
38 void tty_create_winch_pipe (void);
39 void tty_destroy_winch_pipe (void);
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);
45 void tty_colorize_area (int y, int x, int rows, int cols, int color);
47 /*** inline functions ****************************************************************************/
49 #endif