Ticket #1668: Screen and input corruption under xterm [non-UTF]
[midnight-commander.git] / lib / tty / tty-internal.h
blob4ab3c5de051e4c51a160fb261a921065138bb8a6
2 /** \file tty-internal.h
3 * \brief Header: internal suff 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 ultrix /* Ultrix gets _POSIX_VDISABLE wrong! */
15 #define NULL_VALUE -1
16 #else
17 #ifdef _POSIX_VDISABLE
18 #define NULL_VALUE _POSIX_VDISABLE
19 #else
20 #define NULL_VALUE 255
21 #endif
22 #endif
24 /*** enums ***************************************************************************************/
26 /*** structures declarations (and typedefs of structures)*****************************************/
28 /*** global variables defined in .c file *********************************************************/
30 /* If true lines are shown by spaces */
31 extern gboolean slow_tty;
33 /* If true use +, -, | for line drawing */
34 extern gboolean ugly_line_drawing;
36 /* The mouse is currently: TRUE - enabled, FALSE - disabled */
37 extern gboolean mouse_enabled;
39 /*** declarations of public functions ************************************************************/
41 char *mc_tty_normalize_from_utf8 (const char *);
43 /*** inline functions ****************************************************************************/
44 #endif /* MC_TTY_INTERNAL_H */