📜  c++ 隐藏光标 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:50.671000             🧑  作者: Mango

代码示例1
void set_cursor(bool visible){
    CONSOLE_CURSOR_INFO info;
    info.dwSize = 100;
    info.bVisible = visible;
    SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &info);
}