diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/msdos.c | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f02db31f0b7..0287a07fe93 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2008-08-30 Eli Zaretskii <eliz@gnu.org> | 1 | 2008-08-30 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript | ||
| 4 | only when the state changes. | ||
| 5 | |||
| 3 | * w16select.c (Fw16_set_clipboard_data): Don't encode text if | 6 | * w16select.c (Fw16_set_clipboard_data): Don't encode text if |
| 4 | clipboard is unavailable. Set dst to NULL if it doesn't point to | 7 | clipboard is unavailable. Set dst to NULL if it doesn't point to |
| 5 | malloc'ed data. | 8 | malloc'ed data. |
diff --git a/src/msdos.c b/src/msdos.c index 5673c33cb2a..0d46070d5e3 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -1728,17 +1728,19 @@ IT_display_cursor (int on) | |||
| 1728 | { | 1728 | { |
| 1729 | struct tty_display_info *tty = CURTTY (); | 1729 | struct tty_display_info *tty = CURTTY (); |
| 1730 | 1730 | ||
| 1731 | if (tty->termscript) | ||
| 1732 | fprintf (tty->termscript, "\nCURSOR %s", on ? "ON" : "OFF"); | ||
| 1733 | if (on && cursor_cleared) | 1731 | if (on && cursor_cleared) |
| 1734 | { | 1732 | { |
| 1735 | ScreenSetCursor (current_pos_Y, current_pos_X); | 1733 | ScreenSetCursor (current_pos_Y, current_pos_X); |
| 1736 | cursor_cleared = 0; | 1734 | cursor_cleared = 0; |
| 1735 | if (tty->termscript) | ||
| 1736 | fprintf (tty->termscript, "\nCURSOR ON"); | ||
| 1737 | } | 1737 | } |
| 1738 | else if (!on && !cursor_cleared) | 1738 | else if (!on && !cursor_cleared) |
| 1739 | { | 1739 | { |
| 1740 | ScreenSetCursor (-1, -1); | 1740 | ScreenSetCursor (-1, -1); |
| 1741 | cursor_cleared = 1; | 1741 | cursor_cleared = 1; |
| 1742 | if (tty->termscript) | ||
| 1743 | fprintf (tty->termscript, "\nCURSOR OFF"); | ||
| 1742 | } | 1744 | } |
| 1743 | } | 1745 | } |
| 1744 | 1746 | ||