added files

This commit is contained in:
2026-04-12 20:44:08 -07:00
commit 4588950b31
34 changed files with 1342 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#include <iostream>
#ifdef _WIN32
#include <windows.h>
#endif
void show_console_cursor(bool show) {
#if defined(_WIN32)
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO cci;
GetConsoleCursorInfo(handle, &cci);
cci.bVisible = show;
SetConsoleCursorInfo(handle, &cci);
#else
std::cout << (show ? "\033[?25h" : "\033[?25l");
#endif
}