mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
56bf77ae57
Generally, Ctrl-\ is a default assignment to SIGQUIT signal. S-Lang breaks this assignment. NCurses doesn't, therefore MC just quits when user presses the Ctrl-\ key. This commit emulates the S-Lang way in NCurses-based MC. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
34 lines
755 B
C
34 lines
755 B
C
|
|
/** \file tty-internal.h
|
|
* \brief Header: internal suff of the terminal controlling library
|
|
*/
|
|
|
|
#ifndef MC_TTY_INTERNAL_H
|
|
#define MC_TTY_INTERNAL_H
|
|
|
|
#include "lib/global.h" /* include <glib.h> */
|
|
|
|
/* Taken from S-Lang's slutty.c */
|
|
#ifdef ultrix /* Ultrix gets _POSIX_VDISABLE wrong! */
|
|
# define NULL_VALUE -1
|
|
#else
|
|
# ifdef _POSIX_VDISABLE
|
|
# define NULL_VALUE _POSIX_VDISABLE
|
|
# else
|
|
# define NULL_VALUE 255
|
|
# endif
|
|
#endif
|
|
|
|
/* If true lines are shown by spaces */
|
|
extern gboolean slow_tty;
|
|
|
|
/* If true use +, -, | for line drawing */
|
|
extern gboolean ugly_line_drawing;
|
|
|
|
/* The mouse is currently: TRUE - enabled, FALSE - disabled */
|
|
extern gboolean mouse_enabled;
|
|
|
|
char *mc_tty_normalize_from_utf8 (const char *);
|
|
|
|
#endif /* MC_TTY_INTERNAL_H */
|