MCPcopy Create free account
hub / github.com/NetHack/NetHack / term_curs_set

Function term_curs_set

sys/windows/consoletty.c:1526–1543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1524}
1525
1526void
1527term_curs_set(int visibility)
1528{
1529 static int vis = -1;
1530
1531 if (vis == visibility)
1532 return;
1533
1534 static CONSOLE_CURSOR_INFO cursorinfo = { 0, 0 };
1535
1536 if (!cursorinfo.dwSize) {
1537 GetConsoleCursorInfo(console.hConOut, &cursorinfo);
1538 vis = cursorinfo.bVisible ? 1 : 0;
1539 }
1540 cursorinfo.bVisible = visibility ? (BOOL) TRUE : (BOOL) FALSE;
1541 SetConsoleCursorInfo(console.hConOut, &cursorinfo);
1542 vis = visibility;
1543}
1544
1545void
1546home(void)

Callers 1

console_poskeyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected