Restore terminal settings after flushing output, not before
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
[Changes 1.2.2]
|
[Changes 1.2.2]
|
||||||
|
|
||||||
|
* Restore terminal settings after flushing output, not before. (caf)
|
||||||
|
|
||||||
* Remove exported function create_server_list(). (caf)
|
* Remove exported function create_server_list(). (caf)
|
||||||
|
|
||||||
* Fix $myservers(1) to only return registered server refnums, so it now
|
* Fix $myservers(1) to only return registered server refnums, so it now
|
||||||
|
|||||||
@@ -711,8 +711,6 @@ void term_putchar (unsigned char c)
|
|||||||
*/
|
*/
|
||||||
void term_reset (void)
|
void term_reset (void)
|
||||||
{
|
{
|
||||||
tcsetattr(tty_des, TCSADRAIN, &oldb);
|
|
||||||
|
|
||||||
if (current_term->TI_csr)
|
if (current_term->TI_csr)
|
||||||
tputs_x(tparm2(current_term->TI_csr, 0, current_term->TI_lines - 1));
|
tputs_x(tparm2(current_term->TI_csr, 0, current_term->TI_lines - 1));
|
||||||
term_gotoxy(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);
|
tputs_x(current_term->TI_smam);
|
||||||
#endif
|
#endif
|
||||||
term_flush();
|
term_flush();
|
||||||
|
tcsetattr(tty_des, TCSADRAIN, &oldb);
|
||||||
}
|
}
|
||||||
|
|
||||||
void term_reset2 (void)
|
void term_reset2 (void)
|
||||||
{
|
{
|
||||||
tcsetattr(tty_des, TCSADRAIN, &oldb);
|
|
||||||
term_flush();
|
term_flush();
|
||||||
|
tcsetattr(tty_des, TCSADRAIN, &oldb);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user