summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-27 10:42:02 +0000
committerods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-27 10:42:02 +0000
commit8153d3c643fd8914ba788f78271e59dc03c94a75 (patch)
treefd023f2a7672f6bbe09f43ac4b91aed312089520
parentd583c7420af4a647b162c05bf84783a45f04a687 (diff)
downloadmpv-8153d3c643fd8914ba788f78271e59dc03c94a75.tar.bz2
mpv-8153d3c643fd8914ba788f78271e59dc03c94a75.tar.xz
Fix erase to end of line with windows, windows terminal does not support
control codes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17252 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--mplayer.c2
-rw-r--r--osdep/getch2-win.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index 929d326c5b..1579e045e8 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -963,7 +963,7 @@ static void print_status(float a_pos, float a_v, float corr)
// 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);
}
diff --git a/osdep/getch2-win.c b/osdep/getch2-win.c
index 7998615c78..e6fb95ca91 100644
--- a/osdep/getch2-win.c
+++ b/osdep/getch2-win.c
@@ -22,7 +22,7 @@ int mp_input_win32_slave_cmd_func(int fd,char* dest,int size){
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(){
}