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

Function cmov

sys/windows/consoletty.c:1182–1194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1180}
1181
1182void
1183cmov(int x, int y)
1184{
1185 if (x >= console.width)
1186 x = console.width - 1;
1187 if (y >= console.height)
1188 y = console.height - 1;
1189
1190 ttyDisplay->cury = y;
1191 ttyDisplay->curx = x;
1192
1193 set_console_cursor(x, y);
1194}
1195
1196void
1197nocmov(int x, int y)

Callers 1

setttyFunction · 0.70

Calls 1

set_console_cursorFunction · 0.85

Tested by

no test coverage detected