# HG changeset patch # User ods15 # Date 1135680122 0 # Node ID 400b7cb357a77ce5e5665dc86617fd8a6aacecfa # Parent 445ba973f057136ecb803d39b80701ff8cefd15d Fix erase to end of line with windows, windows terminal does not support control codes. diff -r 445ba973f057 -r 400b7cb357a7 mplayer.c --- 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); } diff -r 445ba973f057 -r 400b7cb357a7 osdep/getch2-win.c --- 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(){ }