eric pouech (@epo) commented about dlls/kernel32/tests/console.c:
+ ok(ret, "GetConsoleMode failed\n"); + ok(mode == (ENABLE_PROCESSED_OUTPUT | ENABLE_VIRTUAL_TERMINAL_PROCESSING), "Unexpected mode\n"); + ret = SetConsoleCursorPosition(hConOut, c); + ok(ret, "SetConsoleCursorPosition failed\n"); + ret = SetConsoleTextAttribute(hConOut, FOREGROUND_GREEN | FOREGROUND_INTENSITY); + ok(ret, "SetConsoleTextAttribute failed\n"); + ret = WriteConsoleW(hConOut, L"GREEN\x1b[91mRED", 5+5+3, &dw, NULL); + ok(dw == 5+5+3, "Wrong count\n"); + ok(ret, "WriteConsole failed\n"); + ret = GetConsoleScreenBufferInfo(hConOut, &sb_info); + ok(ret, "GetConsoleScreenBufferInfo failed\n"); + ok(sb_info.dwCursorPosition.X == 5 + 3, "Incorrect X cursor position\n"); + ok(sb_info.dwCursorPosition.Y == 0, "Incorrect X cursor position\n"); + ok(sb_info.wAttributes == (FOREGROUND_RED | FOREGROUND_INTENSITY), "Unexpected attributes got %x, expected %x\n", sb_info.wAttributes, FOREGROUND_RED | FOREGROUND_INTENSITY); + ret = SetConsoleTextAttribute(hConOut, FOREGROUND_BLUE | FOREGROUND_INTENSITY); + ret = WriteConsoleW(hConOut, L"BLUE\x1b[m", 4+3, &dw, NULL); should be 4+4
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9973#note_132999