Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b04021eb
Commit
b04021eb
authored
Aug 30, 2008
by
Eli Zaretskii
Browse files
(IT_display_cursor): Write "CURSOR ON/OFF" to termscript only when
the state changes.
parent
1b912a3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
src/ChangeLog
src/ChangeLog
+3
-0
src/msdos.c
src/msdos.c
+4
-2
No files found.
src/ChangeLog
View file @
b04021eb
2008-08-30 Eli Zaretskii <eliz@gnu.org>
* msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
only when the state changes.
* w16select.c (Fw16_set_clipboard_data): Don't encode text if
clipboard is unavailable. Set dst to NULL if it doesn't point to
malloc'ed data.
...
...
src/msdos.c
View file @
b04021eb
...
...
@@ -1728,17 +1728,19 @@ IT_display_cursor (int on)
{
struct
tty_display_info
*
tty
=
CURTTY
();
if (tty->termscript)
fprintf (tty->termscript, "\nCURSOR %s", on ? "ON" : "OFF");
if
(
on
&&
cursor_cleared
)
{
ScreenSetCursor
(
current_pos_Y
,
current_pos_X
);
cursor_cleared
=
0
;
if
(
tty
->
termscript
)
fprintf
(
tty
->
termscript
,
"
\n
CURSOR ON"
);
}
else
if
(
!
on
&&
!
cursor_cleared
)
{
ScreenSetCursor
(
-
1
,
-
1
);
cursor_cleared
=
1
;
if
(
tty
->
termscript
)
fprintf
(
tty
->
termscript
,
"
\n
CURSOR OFF"
);
}
}
...
...
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