mc/lib/tty/tty-internal.h
Andrew Borodin 56bf77ae57 Ticket #1926: Ctrl-\ key behaviour in NCurses-based MC.
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>
2010-02-06 13:21:25 +03:00

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