# HG changeset patch # User Eli Zaretskii # Date 1220101519 0 # Node ID bc27b61d82f8c40e11276a199876724f2e58b01d # Parent f4fb7fe0f9b315b7ff46f99faf9aec72a5f343ef (IT_display_cursor): Write "CURSOR ON/OFF" to termscript only when the state changes. diff -r f4fb7fe0f9b3 -r bc27b61d82f8 src/msdos.c --- a/src/msdos.c Sat Aug 30 12:32:59 2008 +0000 +++ b/src/msdos.c Sat Aug 30 13:05:19 2008 +0000 @@ -1728,17 +1728,19 @@ { 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, "\nCURSOR ON"); } else if (!on && !cursor_cleared) { ScreenSetCursor (-1, -1); cursor_cleared = 1; + if (tty->termscript) + fprintf (tty->termscript, "\nCURSOR OFF"); } }