From: Geoff Voelker Date: Fri, 26 May 1995 05:26:51 +0000 (+0000) Subject: (set_terminal_modes): Set cursor size appropriate for Win95. X-Git-Tag: emacs-19.34~3916 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e312961bb6f50eb3a4f2ad70557081d55cf05db4;p=emacs.git (set_terminal_modes): Set cursor size appropriate for Win95. (write_glyphs): Don't memset attrs, which is a word array. --- diff --git a/src/w32console.c b/src/w32console.c index 95d54a8c204..9973fe41b3d 100644 --- a/src/w32console.c +++ b/src/w32console.c @@ -383,7 +383,8 @@ write_glyphs (register GLYPH *string, register int len) len = ptr-chars; /* Fill in the attributes for these characters. */ - memset (attrs, char_attr, len*sizeof (*attrs)); + for (i = 0; i < len; i++) + attrs[i] = char_attr; /* Write the attributes. */ if (!WriteConsoleOutputAttribute (cur_screen, attrs, len, cursor_coords, &i)) @@ -490,8 +491,8 @@ set_terminal_modes (void) SetConsoleActiveScreenBuffer (cur_screen); - /* make cursor big and visible */ - cci.dwSize = 100; + /* make cursor big and visible (100 on Win95 makes it disappear) */ + cci.dwSize = 99; cci.bVisible = TRUE; (void) SetConsoleCursorInfo (cur_screen, &cci); }