diff options
author | ods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-12-27 10:42:02 +0000 |
---|---|---|
committer | ods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-12-27 10:42:02 +0000 |
commit | 8153d3c643fd8914ba788f78271e59dc03c94a75 (patch) | |
tree | fd023f2a7672f6bbe09f43ac4b91aed312089520 | |
parent | d583c7420af4a647b162c05bf84783a45f04a687 (diff) | |
download | mpv-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.c | 2 | ||||
-rw-r--r-- | osdep/getch2-win.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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(){ } |