conhost: Use more standard hide cursor sequence.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-09-08 19:35:37 +02:00 committed by Alexandre Julliard
parent e151e4c8a1
commit e58ef508a9
2 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@ static void hide_tty_cursor( struct console *console )
{
if (console->tty_cursor_visible)
{
tty_write( console, "\x1b[25l", 5 );
tty_write( console, "\x1b[?25l", 6 );
console->tty_cursor_visible = FALSE;
}
}

View File

@ -119,7 +119,7 @@ static BOOL skip_byte_(unsigned int line, char ch)
static void expect_hide_cursor_(unsigned int line)
{
if (!console_output_count) fetch_console_output_(line);
ok_(__FILE__,line)(skip_sequence_(line, "\x1b[25l") || broken(skip_sequence_(line, "\x1b[?25l")),
ok_(__FILE__,line)(skip_sequence_(line, "\x1b[?25l") || broken(skip_sequence_(line, "\x1b[25l")),
"expected hide cursor escape\n");
}