| 627 | /* Perform actions that should be done every turn before nhgetch() */ |
| 628 | |
| 629 | void |
| 630 | curses_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() */ |
no test coverage detected