]> git.eshelyaron.com Git - emacs.git/commitdiff
(init_sys_modes): Use set_terminal_modes_hook.
authorJason Rumney <jasonr@gnu.org>
Tue, 25 Sep 2007 08:53:03 +0000 (08:53 +0000)
committerJason Rumney <jasonr@gnu.org>
Tue, 25 Sep 2007 08:53:03 +0000 (08:53 +0000)
(reset_sys_modes): Use reset_terminal_modes_hook.

src/sysdep.c

index 88f4b99da8e9f10bc9d81a08cfe5dadec6e6a725..9a7ad5b450ffd02a9df9cbf5b732e5446c55c944 100644 (file)
@@ -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