From: Jason Rumney Date: Tue, 25 Sep 2007 08:53:03 +0000 (+0000) Subject: (init_sys_modes): Use set_terminal_modes_hook. X-Git-Tag: emacs-pretest-23.0.90~10690 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=69fb5031b30e084f78b58655c352504ff0fd723c;p=emacs.git (init_sys_modes): Use set_terminal_modes_hook. (reset_sys_modes): Use reset_terminal_modes_hook. --- diff --git a/src/sysdep.c b/src/sysdep.c index 88f4b99da8e..9a7ad5b450f 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -1781,7 +1781,8 @@ init_sys_modes (tty_out) 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) { @@ -1993,7 +1994,8 @@ reset_sys_modes (tty_out) } #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