2009-07-12 14:22:41 +04:00
|
|
|
|
|
|
|
/** \file tty-internal.h
|
2019-08-24 17:12:13 +03:00
|
|
|
* \brief Header: internal stuff of the terminal controlling library
|
2009-07-12 14:22:41 +04:00
|
|
|
*/
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
#ifndef MC__TTY_INTERNAL_H
|
|
|
|
#define MC__TTY_INTERNAL_H
|
2009-07-12 14:22:41 +04:00
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
#include "lib/global.h" /* include <glib.h> */
|
|
|
|
|
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
2009-07-12 14:22:41 +04:00
|
|
|
|
2010-02-06 13:07:35 +03:00
|
|
|
/* Taken from S-Lang's slutty.c */
|
2010-11-08 13:21:45 +03:00
|
|
|
#ifdef _POSIX_VDISABLE
|
|
|
|
#define NULL_VALUE _POSIX_VDISABLE
|
2010-02-06 13:07:35 +03:00
|
|
|
#else
|
2010-11-08 13:21:45 +03:00
|
|
|
#define NULL_VALUE 255
|
2010-02-06 13:07:35 +03:00
|
|
|
#endif
|
2010-11-08 13:21:45 +03:00
|
|
|
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
2010-02-06 13:07:35 +03:00
|
|
|
|
2009-07-13 22:13:19 +04:00
|
|
|
/* The mouse is currently: TRUE - enabled, FALSE - disabled */
|
|
|
|
extern gboolean mouse_enabled;
|
|
|
|
|
2011-09-02 13:30:59 +04:00
|
|
|
/* terminal ca capabilities */
|
|
|
|
extern char *smcup;
|
|
|
|
extern char *rmcup;
|
|
|
|
|
2019-08-17 17:55:50 +03:00
|
|
|
/* pipe to handle SIGWINCH */
|
|
|
|
extern int sigwinch_pipe[2];
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
2019-08-17 17:55:50 +03:00
|
|
|
void tty_create_winch_pipe (void);
|
2020-02-02 14:38:31 +03:00
|
|
|
void tty_destroy_winch_pipe (void);
|
2019-08-17 17:55:50 +03:00
|
|
|
|
2009-09-28 12:04:54 +04:00
|
|
|
char *mc_tty_normalize_from_utf8 (const char *);
|
2011-09-01 11:09:55 +04:00
|
|
|
void tty_init_xterm_support (gboolean is_xterm);
|
2011-11-15 17:00:59 +04:00
|
|
|
int tty_lowlevel_getch (void);
|
2009-09-28 12:04:54 +04:00
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** inline functions ****************************************************************************/
|
2019-08-17 17:55:50 +03:00
|
|
|
|
2009-09-17 02:07:04 +04:00
|
|
|
#endif /* MC_TTY_INTERNAL_H */
|