setting console mode to processed output not neccesary if we use SetConsoleCursorPosition

This commit is contained in:
Felix Gündling
2020-04-25 08:57:32 +02:00
parent ad5cf841be
commit d99cad1ede
2 changed files with 0 additions and 9 deletions

View File

@@ -14,12 +14,6 @@ namespace indicators {
#if defined(_MSC_VER)
void enable_cursor_movement() {
auto hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleMode(hStdout,
ENABLE_PROCESSED_OUTPUT | ENABLE_VIRTUAL_TERMINAL_PROCESSING);
}
void show_console_cursor(bool const show) {
HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE);
@@ -32,8 +26,6 @@ void show_console_cursor(bool const show) {
#else
void enable_cursor_movement() {}
void show_console_cursor(bool const show) {
std::fputs(show ? "\e[?25h" : "\e[?25l", stdout);
}