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

Function really_move_cursor

sys/windows/consoletty.c:1157–1180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1155}
1156
1157static void
1158really_move_cursor(void)
1159{
1160#ifdef PORT_DEBUG
1161 char oldtitle[BUFSZ], newtitle[BUFSZ];
1162 if (display_cursor_info && wizard) {
1163 oldtitle[0] = '\0';
1164 if (GetConsoleTitle(oldtitle, BUFSZ)) {
1165 oldtitle[39] = '\0';
1166 }
1167 Snprintf(newtitle, sizeof newtitle,
1168 "%-55s tty=(%02d,%02d) consoletty=(%02d,%02d)",
1169 oldtitle,
1170 ttyDisplay->curx, ttyDisplay->cury,
1171 console.cursor.X, console.cursor.Y);
1172 (void) SetConsoleTitle(newtitle);
1173 }
1174#endif
1175 if (ttyDisplay)
1176 set_console_cursor(ttyDisplay->curx, ttyDisplay->cury);
1177
1178 back_buffer_flip();
1179 SetConsoleCursorPosition(console.hConOut, console.cursor);
1180}
1181
1182void
1183cmov(int x, int y)

Callers 6

term_end_screenFunction · 0.85
consoletty_openFunction · 0.85
tgetchFunction · 0.85
console_poskeyFunction · 0.85
VA_DECLFunction · 0.85
synch_cursorFunction · 0.85

Calls 2

set_console_cursorFunction · 0.85
back_buffer_flipFunction · 0.85

Tested by

no test coverage detected