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

Function X11_curs

win/X11/winX.c:950–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

948}
949
950void
951X11_curs(winid window, int x, int y)
952{
953 check_winid(window);
954
955 if (x < 0 || x >= COLNO) {
956 impossible("curs: bad x value [%d]", x);
957 x = 0;
958 }
959 if (y < 0 || y >= ROWNO) {
960 impossible("curs: bad y value [%d]", y);
961 y = 0;
962 }
963
964 window_list[window].cursx = x;
965 window_list[window].cursy = y;
966}
967
968void
969X11_putstr(winid window, int attr, const char *str)

Callers

nothing calls this directly

Calls 1

impossibleFunction · 0.50

Tested by

no test coverage detected