(reset_sys_modes): Use reset_terminal_modes_hook.
setbuf (tty_out->output, (char *) _sobuf);
#endif
- tty_set_terminal_modes (tty_out->terminal);
+ if (tty_out->terminal->set_terminal_modes_hook)
+ tty_out->terminal->set_terminal_modes_hook (tty_out->terminal);
if (!tty_out->term_initted)
{
}
#endif
- tty_reset_terminal_modes (tty_out->terminal);
+ if (tty_out->terminal->reset_terminal_modes_hook)
+ tty_out->terminal->reset_terminal_modes_hook (tty_out->terminal);
#ifdef BSD_SYSTEM
#ifndef BSD4_1