aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 }