aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2005-06-26 04:35:44 +0000
committerKaroly Lorentey2005-06-26 04:35:44 +0000
commit1fb8c4adcbf2d3c833b3e6bbb86211109085fa86 (patch)
tree2064f138bebeb121d2bb4ec25abd4ba3ab0ba769 /src
parente7cf0fa0edcc9e39c3b192930b7d128ebc6ad6db (diff)
downloademacs-1fb8c4adcbf2d3c833b3e6bbb86211109085fa86.tar.gz
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')
-rw-r--r--src/keyboard.c8
-rw-r--r--src/sysdep.c1
2 files changed, 6 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'. */)
10584#endif 10584#endif
10585 10585
10586#ifndef DOS_NT 10586#ifndef DOS_NT
10587 /* this causes startup screen to be restored and messes with the mouse */ 10587 if (FRAME_TERMCAP_P (XFRAME (selected_frame)))
10588 reset_all_sys_modes (); 10588 /* this causes startup screen to be restored and messes with the mouse */
10589 reset_sys_modes (CURTTY ());
10589#endif 10590#endif
10590 10591
10591#ifdef SIGIO 10592#ifdef SIGIO
@@ -10628,7 +10629,8 @@ See also `current-input-mode'. */)
10628 quit_char = XINT (quit) & (NILP (meta) ? 0177 : 0377); 10629 quit_char = XINT (quit) & (NILP (meta) ? 0177 : 0377);
10629 10630
10630#ifndef DOS_NT 10631#ifndef DOS_NT
10631 init_all_sys_modes (); 10632 if (FRAME_TERMCAP_P (XFRAME (selected_frame)))
10633 init_sys_modes (CURTTY ());
10632#endif 10634#endif
10633 10635
10634#ifdef POLL_FOR_INPUT 10636#ifdef POLL_FOR_INPUT
diff --git a/src/sysdep.c b/src/sysdep.c
index 4127517b98f..56dae99dc9f 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -1725,6 +1725,7 @@ nil means don't delete them until `list-processes' is run. */);
1725 1725
1726 if (tty_out->term_initted && no_redraw_on_reenter) 1726 if (tty_out->term_initted && no_redraw_on_reenter)
1727 { 1727 {
1728 /* XXX This seems wrong on multi-tty. */
1728 if (display_completed) 1729 if (display_completed)
1729 direct_output_forward_char (0); 1730 direct_output_forward_char (0);
1730 } 1731 }