| 1236 | #if defined(_MSC_VER) |
| 1237 | |
| 1238 | static inline void show_console_cursor(bool const show) { |
| 1239 | HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE); |
| 1240 | |
| 1241 | CONSOLE_CURSOR_INFO cursorInfo; |
| 1242 | |
| 1243 | GetConsoleCursorInfo(out, &cursorInfo); |
| 1244 | cursorInfo.bVisible = show; // set the cursor visibility |
| 1245 | SetConsoleCursorInfo(out, &cursorInfo); |
| 1246 | } |
| 1247 | |
| 1248 | static inline void erase_line() { |
| 1249 | auto hStdout = GetStdHandle(STD_OUTPUT_HANDLE); |