summaryrefslogtreecommitdiff
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>1995-10-11 11:48:52 +0000
committerKim F. Storm <storm@cua.dk>1995-10-11 11:48:52 +0000
commit8999ee4b494af884874add14e63a4705df96b88b (patch)
treefc9308409054f588a512a344d75f7f1ec1fac9d5 /src/sysdep.c
parent241f1acdde61420ece91ea624b1fa7b5a32e1c15 (diff)
downloademacs-8999ee4b494af884874add14e63a4705df96b88b.tar.gz
(init_sys_modes) [!HAVE_X_WINDOWS (MSDOS)]: Always call set_terminal_modes.
(reset_sys_modes) [MSDOS]: Do not look at EMACSCOLORS.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 0b46d965f25..dc47a4a2a0f 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -1469,7 +1469,11 @@ init_sys_modes ()
#else
setbuf (stdout, _sobuf);
#endif
+#ifdef HAVE_X_WINDOWS
+ /* Emacs' window system on MSDOG uses the `internal terminal' and therefore
+ needs the initialization code below. */
if (! read_socket_hook && EQ (Vwindow_system, Qnil))
+#endif
set_terminal_modes ();
if (term_initted && no_redraw_on_reenter)
@@ -1615,19 +1619,6 @@ reset_sys_modes ()
return;
#endif
cursor_to (FRAME_HEIGHT (selected_frame) - 1, 0);
-#ifdef MSDOS
- if (!EQ (Vwindow_system, Qnil))
- {
- char *colors = getenv("EMACSCOLORS");
- int color = 0x07; /* Change to white on black */
- if (colors && strlen (colors) >= 5 && colors[2] == ';')
- color = ((colors[4] & 0x07) << 4) || (colors[3] & 0x07);
- if ((stdout)->_cnt < 3) fflush(stdout); /* avoid call to _flsbuf */
- putchar ('\e');
- putchar ('A');
- putchar (color);
- }
-#endif
clear_end_of_line (FRAME_WIDTH (selected_frame));
/* clear_end_of_line may move the cursor */
cursor_to (FRAME_HEIGHT (selected_frame) - 1, 0);