# HG changeset patch # User Kim F. Storm # Date 813412132 0 # Node ID d9170c4ec837ae6330437de7e64e0707a54f79a3 # Parent 12543846eb22605a94ba590c5788d5845a1f6500 (init_sys_modes) [!HAVE_X_WINDOWS (MSDOS)]: Always call set_terminal_modes. (reset_sys_modes) [MSDOS]: Do not look at EMACSCOLORS. diff -r 12543846eb22 -r d9170c4ec837 src/sysdep.c --- a/src/sysdep.c Wed Oct 11 05:23:31 1995 +0000 +++ b/src/sysdep.c Wed Oct 11 11:48:52 1995 +0000 @@ -1469,7 +1469,11 @@ #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 @@ 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);