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

Function curses_prehousekeeping

win/curses/cursmisc.c:629–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627/* Perform actions that should be done every turn before nhgetch() */
628
629void
630curses_prehousekeeping(void)
631{
632#ifndef PDCURSES
633 WINDOW *win = curses_get_nhwin(MAP_WIN);
634#endif /* PDCURSES */
635
636 if ((curs_x > -1) && (curs_y > -1)) {
637 curs_set(1);
638#ifdef PDCURSES
639 /* PDCurses seems to not handle wmove correctly, so we use move
640 and physical screen coordinates instead */
641 move(curs_y, curs_x);
642#else
643 wmove(win, curs_y, curs_x);
644#endif /* PDCURSES */
645 curses_refresh_nhwin(MAP_WIN);
646 }
647}
648
649
650/* Perform actions that should be done every turn after nhgetch() */

Callers 1

curses_nhgetchFunction · 0.85

Calls 2

curses_get_nhwinFunction · 0.85
curses_refresh_nhwinFunction · 0.85

Tested by

no test coverage detected