mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-26 20:24:20 +03:00

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 */
|