Made prompt respect color reset

develop
PatrikLundell 2017-12-14 12:45:35 +01:00
parent 88be4b2b6e
commit cf7dbd478a
1 changed files with 5 additions and 2 deletions

@ -214,8 +214,11 @@ namespace DFHack
{
COORD pos = { (SHORT)x, (SHORT)y };
DWORD count = 0;
WriteConsoleOutputCharacterA(console_out, str, len, pos, &count);
}
CONSOLE_SCREEN_BUFFER_INFO inf = { 0 };
GetConsoleScreenBufferInfo(console_out, &inf);
SetConsoleCursorPosition(console_out, pos);
WriteConsoleA(console_out, str, len, &count, NULL);
}
void prompt_refresh()
{