diff src/keyboard.c @ 83318:666b48e39a5a

Work around mysterious breakage of arrow key recognition under screen (see first TODO in README). * src/keyboard.c (Fset_input_mode): Call reset_sys_modes and init_sys_modes on the selected device only; do not use the bulk functions reset_all_sys_modes and init_all_sys_modes. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-358
author Karoly Lorentey <lorentey@elte.hu>
date Sun, 26 Jun 2005 04:35:44 +0000
parents 13371344a3ba
children 8f5787c83345
line wrap: on
line diff
--- a/src/keyboard.c	Sun Jun 26 03:20:47 2005 +0000
+++ b/src/keyboard.c	Sun Jun 26 04:35:44 2005 +0000
@@ -10584,8 +10584,9 @@
 #endif
 
 #ifndef DOS_NT
-  /* this causes startup screen to be restored and messes with the mouse */
-  reset_all_sys_modes ();
+  if (FRAME_TERMCAP_P (XFRAME (selected_frame)))
+    /* this causes startup screen to be restored and messes with the mouse */
+    reset_sys_modes (CURTTY ());
 #endif
 
 #ifdef SIGIO
@@ -10628,7 +10629,8 @@
     quit_char = XINT (quit) & (NILP (meta) ? 0177 : 0377);
 
 #ifndef DOS_NT
-  init_all_sys_modes ();
+  if (FRAME_TERMCAP_P (XFRAME (selected_frame)))
+    init_sys_modes (CURTTY ());
 #endif
 
 #ifdef POLL_FOR_INPUT