Mercurial > emacs
changeset 11942:04cc0b15ef74
(set_terminal_modes): Set cursor size appropriate for Win95.
(write_glyphs): Don't memset attrs, which is a word array.
author | Geoff Voelker <voelker@cs.washington.edu> |
---|---|
date | Fri, 26 May 1995 05:26:51 +0000 |
parents | cb26a4ca0e10 |
children | ea533622fb8b |
files | src/w32console.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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); }