Fix erase to end of line with windows, windows terminal does not support
control codes.
author |
ods15 |
date |
Tue, 27 Dec 2005 10:42:02 +0000 |
parents |
445ba973f057 |
children |
9eaeeeca2ec3 |
files |
mplayer.c osdep/getch2-win.c |
diffstat |
2 files changed, 2 insertions(+), 2 deletions(-)
[+]
|
line diff
--- a/mplayer.c Tue Dec 27 10:10:44 2005 +0000
+++ b/mplayer.c Tue Dec 27 10:42:02 2005 +0000
@@ -963,7 +963,7 @@
// end
line[pos] = 0;
- mp_msg(MSGT_AVSYNC, MSGL_STATUS, "%s%s\r", line, erase_to_end_of_line);
+ mp_msg(MSGT_AVSYNC, MSGL_STATUS, "%s%s\r", erase_to_end_of_line, line);
free(line);
}
--- a/osdep/getch2-win.c Tue Dec 27 10:10:44 2005 +0000
+++ b/osdep/getch2-win.c Tue Dec 27 10:42:02 2005 +0000
@@ -22,7 +22,7 @@
int screen_width=80;
int screen_height=24;
-char * erase_to_end_of_line = "\033[J";
+char * erase_to_end_of_line = " \r";
void get_screen_size(){
}