MCPcopy Create free account
hub / github.com/KTH-RPL/dufomap / show_console_cursor

Function show_console_cursor

src/indicators.hpp:1238–1246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1236#if defined(_MSC_VER)
1237
1238static 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
1248static inline void erase_line() {
1249 auto hStdout = GetStdHandle(STD_OUTPUT_HANDLE);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected