changeset 84848:d8f4346c8ee1

(init_sys_modes): Use set_terminal_modes_hook. (reset_sys_modes): Use reset_terminal_modes_hook.
author Jason Rumney <jasonr@gnu.org>
date Tue, 25 Sep 2007 08:53:03 +0000
parents d74a2df235a9
children ba20cee1aec0
files src/sysdep.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Tue Sep 25 07:29:43 2007 +0000
+++ b/src/sysdep.c	Tue Sep 25 08:53:03 2007 +0000
@@ -1781,7 +1781,8 @@
   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 @@
   }
 #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