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
Benno Schulenberg 2020-09-08 09:15:12 +02:00
parent 48ac0a64c6
commit 462e9d4822
1 changed files with 6 additions and 6 deletions

View File

@ -1194,19 +1194,19 @@ void terminal_init(void)
nonl();
noecho();
disable_extended_io();
if (ISSET(PRESERVE))
enable_flow_control();
#ifdef USE_SLANG
else
disable_flow_control();
tcgetattr(0, &desired_state);
have_new_state = TRUE;
} else
tcsetattr(0, TCSANOW, &desired_state);
SLang_init_tty(-1, 0, 0);
#endif
if (ISSET(PRESERVE))
enable_flow_control();
#ifdef USE_SLANG
else
disable_flow_control();
#endif
disable_kb_interrupt();