changeset 4476:e7de1b007447

(x_term_init): Set the hooks before we call Fset_input_mode.
author Richard M. Stallman <rms@gnu.org>
date Fri, 06 Aug 1993 23:37:41 +0000
parents e9389ba6e04c
children 7101a887f80d
files src/xterm.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri Aug 06 22:45:22 1993 +0000
+++ b/src/xterm.c	Fri Aug 06 23:37:41 1993 +0000
@@ -4850,11 +4850,6 @@
   init_sigio ();
 #endif /* ! defined (SIGIO) */
 
-  /* Must use interrupt input because we cannot otherwise
-     arrange for C-g to be noticed immediately.
-     We cannot connect it to SIGINT.  */
-  Fset_input_mode (Qt, Qnil, Qt, Qnil);
-
   expose_all_windows = 0;
 
   clear_frame_hook = XTclear_frame;
@@ -4889,6 +4884,9 @@
 				   off the bottom */
   baud_rate = 19200;
 
+  /* Try to use interrupt input; if we can't, then start polling.  */
+  Fset_input_mode (Qt, Qnil, Qt, Qnil);
+
   /* Note that there is no real way portable across R3/R4 to get the 
      original error handler.  */
   XHandleError (x_error_quitter);