Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e312961b
Commit
e312961b
authored
May 26, 1995
by
Geoff Voelker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(set_terminal_modes): Set cursor size appropriate for Win95.
(write_glyphs): Don't memset attrs, which is a word array.
parent
bd4a449f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/w32console.c
src/w32console.c
+4
-3
No files found.
src/w32console.c
View file @
e312961b
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment