Removed global variable ugly_line_drawing
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Этот коммит содержится в:
родитель
8d44ed297b
Коммит
9d9935d290
@ -30,9 +30,6 @@
|
||||
/* 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;
|
||||
|
||||
|
@ -165,10 +165,9 @@ mc_tty_normalize_lines_char (const char *ch)
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
void
|
||||
tty_init (gboolean slow, gboolean ugly_lines, gboolean mouse_enable, gboolean is_xterm)
|
||||
tty_init (gboolean slow, gboolean mouse_enable, gboolean is_xterm)
|
||||
{
|
||||
slow_tty = slow;
|
||||
(void) ugly_lines;
|
||||
|
||||
initscr ();
|
||||
|
||||
|
@ -271,10 +271,9 @@ mc_tty_normalize_lines_char (const char *str)
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
void
|
||||
tty_init (gboolean slow, gboolean ugly_lines, gboolean mouse_enable, gboolean is_xterm)
|
||||
tty_init (gboolean slow, gboolean mouse_enable, gboolean is_xterm)
|
||||
{
|
||||
slow_tty = slow;
|
||||
ugly_line_drawing = ugly_lines;
|
||||
|
||||
SLtt_Ignore_Beep = 1;
|
||||
|
||||
@ -300,7 +299,7 @@ tty_init (gboolean slow, gboolean ugly_lines, gboolean mouse_enable, gboolean is
|
||||
/* 255 = ignore abort char; XCTRL('g') for abort char = ^g */
|
||||
SLang_init_tty (XCTRL ('g'), 1, 0);
|
||||
|
||||
if (ugly_lines)
|
||||
if (mc_global.args.ugly_line_drawing)
|
||||
SLtt_Has_Alt_Charset = 0;
|
||||
|
||||
/* If SLang uses fileno(stderr) for terminal input MC will hang
|
||||
|
@ -58,9 +58,6 @@ int reset_hp_softkeys = 0;
|
||||
/* If true lines are drown by spaces */
|
||||
gboolean slow_tty = FALSE;
|
||||
|
||||
/* If true use +, -, | for line drawing */
|
||||
gboolean ugly_line_drawing = FALSE;
|
||||
|
||||
int mc_tty_frm[MC_TTY_FRM_MAX];
|
||||
|
||||
/*** file scope macro definitions ****************************************************************/
|
||||
|
@ -76,7 +76,7 @@ extern void tty_beep (void);
|
||||
/* {{{ Input }}} */
|
||||
|
||||
extern gboolean tty_check_term (gboolean force_xterm);
|
||||
extern void tty_init (gboolean slow, gboolean ugly_lines, gboolean mouse_enable,
|
||||
extern void tty_init (gboolean slow, gboolean mouse_enable,
|
||||
gboolean is_xterm);
|
||||
extern void tty_shutdown (void);
|
||||
|
||||
|
@ -441,7 +441,7 @@ main (int argc, char *argv[])
|
||||
|
||||
/* Must be done before init_subshell, to set up the terminal size: */
|
||||
/* FIXME: Should be removed and LINES and COLS computed on subshell */
|
||||
tty_init (mc_global.args.slow_terminal, mc_global.args.ugly_line_drawing, !mc_args__nomouse,
|
||||
tty_init (mc_global.args.slow_terminal, !mc_args__nomouse,
|
||||
mc_global.tty.xterm_flag);
|
||||
|
||||
load_setup ();
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user