diff mplayer.c @ 17240:11459d1ff17c

Use termcap "erase to end of line" character code instead of using spaces to end of screen.
author ods15
date Sun, 25 Dec 2005 18:26:35 +0000
parents 637a2f4ff216
children 3ab613cdf96a
line wrap: on
line diff
--- a/mplayer.c	Sun Dec 25 17:38:19 2005 +0000
+++ b/mplayer.c	Sun Dec 25 18:26:35 2005 +0000
@@ -962,9 +962,8 @@
     saddf(line, &pos, width, "%4.2fx ", playback_speed);
 
   // end
-  memset(&line[pos], ' ', width - pos);
-  line[width] = 0;
-  mp_msg(MSGT_AVSYNC, MSGL_STATUS, "%s\r", line);
+  line[pos] = 0;
+  mp_msg(MSGT_AVSYNC, MSGL_STATUS, "%s%s\r", line, erase_to_end_of_line);
   free(line);
 }