summaryrefslogtreecommitdiff
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorKaroly Lorentey <lorentey@elte.hu>2005-06-26 04:35:44 +0000
committerKaroly Lorentey <lorentey@elte.hu>2005-06-26 04:35:44 +0000
commit1fb8c4adcbf2d3c833b3e6bbb86211109085fa86 (patch)
tree2064f138bebeb121d2bb4ec25abd4ba3ab0ba769 /src/keyboard.c
parente7cf0fa0edcc9e39c3b192930b7d128ebc6ad6db (diff)
downloademacs-1fb8c4adcbf2d3c833b3e6bbb86211109085fa86.tar.gz
emacs-1fb8c4adcbf2d3c833b3e6bbb86211109085fa86.tar.bz2
emacs-1fb8c4adcbf2d3c833b3e6bbb86211109085fa86.zip
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
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 13bf7131e0e..016582d8d20 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -10584,8 +10584,9 @@ See also `current-input-mode'. */)
#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 @@ See also `current-input-mode'. */)
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