# HG changeset patch # User Geoff Voelker # Date 801466011 0 # Node ID 04cc0b15ef7439bdd1feb21ffe99e86fadb03d82 # Parent cb26a4ca0e10f254c19024f7c7b5ac2df72fd790 (set_terminal_modes): Set cursor size appropriate for Win95. (write_glyphs): Don't memset attrs, which is a word array. diff -r cb26a4ca0e10 -r 04cc0b15ef74 src/w32console.c --- a/src/w32console.c Fri May 26 05:26:17 1995 +0000 +++ b/src/w32console.c Fri May 26 05:26:51 1995 +0000 @@ -383,7 +383,8 @@ 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 @@ 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); }