mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
d583c7420a
commit
8153d3c643
|
@ -963,7 +963,7 @@ static void print_status(float a_pos, float a_v, float corr)
|
||||||
|
|
||||||
// end
|
// end
|
||||||
line[pos] = 0;
|
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);
|
free(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ int mp_input_win32_slave_cmd_func(int fd,char* dest,int size){
|
||||||
|
|
||||||
int screen_width=80;
|
int screen_width=80;
|
||||||
int screen_height=24;
|
int screen_height=24;
|
||||||
char * erase_to_end_of_line = "\033[J";
|
char * erase_to_end_of_line = " \r";
|
||||||
|
|
||||||
void get_screen_size(){
|
void get_screen_size(){
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue