suspension: switch off flow control at the right moment (for Slang)
This fixes https://savannah.gnu.org/bugs/?59078.
Bug existed since version 4.8, commit c09e96f2
.
master
parent
48ac0a64c6
commit
462e9d4822
12
src/nano.c
12
src/nano.c
|
@ -1194,19 +1194,19 @@ void terminal_init(void)
|
||||||
nonl();
|
nonl();
|
||||||
noecho();
|
noecho();
|
||||||
disable_extended_io();
|
disable_extended_io();
|
||||||
|
|
||||||
if (ISSET(PRESERVE))
|
|
||||||
enable_flow_control();
|
|
||||||
#ifdef USE_SLANG
|
#ifdef USE_SLANG
|
||||||
else
|
|
||||||
disable_flow_control();
|
|
||||||
|
|
||||||
tcgetattr(0, &desired_state);
|
tcgetattr(0, &desired_state);
|
||||||
have_new_state = TRUE;
|
have_new_state = TRUE;
|
||||||
} else
|
} else
|
||||||
tcsetattr(0, TCSANOW, &desired_state);
|
tcsetattr(0, TCSANOW, &desired_state);
|
||||||
|
|
||||||
SLang_init_tty(-1, 0, 0);
|
SLang_init_tty(-1, 0, 0);
|
||||||
|
#endif
|
||||||
|
if (ISSET(PRESERVE))
|
||||||
|
enable_flow_control();
|
||||||
|
#ifdef USE_SLANG
|
||||||
|
else
|
||||||
|
disable_flow_control();
|
||||||
#endif
|
#endif
|
||||||
disable_kb_interrupt();
|
disable_kb_interrupt();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue