diff --git a/Changelog b/Changelog index 0fc2f01..2f4a3f9 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,7 @@ [Changes 1.2.2] +* Restore terminal settings after flushing output, not before. (caf) + * Remove exported function create_server_list(). (caf) * Fix $myservers(1) to only return registered server refnums, so it now diff --git a/source/term.c b/source/term.c index 826451b..847c92f 100644 --- a/source/term.c +++ b/source/term.c @@ -711,8 +711,6 @@ void term_putchar (unsigned char c) */ void term_reset (void) { - tcsetattr(tty_des, TCSADRAIN, &oldb); - if (current_term->TI_csr) tputs_x(tparm2(current_term->TI_csr, 0, current_term->TI_lines - 1)); term_gotoxy(0, current_term->TI_lines - 1); @@ -725,12 +723,13 @@ void term_reset (void) tputs_x(current_term->TI_smam); #endif term_flush(); + tcsetattr(tty_des, TCSADRAIN, &oldb); } void term_reset2 (void) { - tcsetattr(tty_des, TCSADRAIN, &oldb); term_flush(); + tcsetattr(tty_des, TCSADRAIN, &oldb); } /*