From e312961bb6f50eb3a4f2ad70557081d55cf05db4 Mon Sep 17 00:00:00 2001 From: Geoff Voelker Date: Fri, 26 May 1995 05:26:51 +0000 Subject: [PATCH] (set_terminal_modes): Set cursor size appropriate for Win95. (write_glyphs): Don't memset attrs, which is a word array. --- src/w32console.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } -- 2.39.2