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

Function curses_update_stdscr_cursor

win/curses/cursmisc.c:616–625  ·  view source on GitHub ↗

update the ncurses stdscr cursor to where the cursor in our map is */

Source from the content-addressed store, hash-verified

614
615/* update the ncurses stdscr cursor to where the cursor in our map is */
616void
617curses_update_stdscr_cursor(void)
618{
619#ifndef PDCURSES
620 int xadj = 0, yadj = 0;
621
622 curses_get_window_xy(MAP_WIN, &xadj, &yadj);
623 move(curs_y + yadj, curs_x + xadj);
624#endif
625}
626
627/* Perform actions that should be done every turn before nhgetch() */
628

Callers 1

curses_delay_outputFunction · 0.85

Calls 1

curses_get_window_xyFunction · 0.85

Tested by

no test coverage detected