summaryrefslogtreecommitdiff
path: root/src/w32console.c
diff options
context:
space:
mode:
authorGeoff Voelker <voelker@cs.washington.edu>1995-05-26 05:26:51 +0000
committerGeoff Voelker <voelker@cs.washington.edu>1995-05-26 05:26:51 +0000
commite312961bb6f50eb3a4f2ad70557081d55cf05db4 (patch)
tree91a3b665a40c54774bf892f02c78228157d93038 /src/w32console.c
parentbd4a449f55414ff24e048de268ec50f538857a64 (diff)
downloademacs-e312961bb6f50eb3a4f2ad70557081d55cf05db4.tar.gz
(set_terminal_modes): Set cursor size appropriate for Win95.
(write_glyphs): Don't memset attrs, which is a word array.
Diffstat (limited to 'src/w32console.c')
-rw-r--r--src/w32console.c7
1 files 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);
}