Commit e312961b authored by Geoff Voelker's avatar Geoff Voelker

(set_terminal_modes): Set cursor size appropriate for Win95.

(write_glyphs): Don't memset attrs, which is a word array.
parent bd4a449f
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment