Center cursor on player after all UIs are drawn #45815
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
SUMMARY: Interface "Center terminal cursor on player character after all UIs are drawn"
Purpose of change
Fixes #44686 (Though I'd appreciate if @BlindGuyNW could comment on if this fixes it or if there are other issues).
Describe the solution
After drawing all the UI, move the terminal cursor back to the player's position, and refresh the window.
Also, add a little explanatory comment for anyone debugging cursor issues in the future that changing curs_set() won't crash the game.
Describe alternatives you've considered
There are probably cursor errors elsewhere, this just solves one of them.
Testing
Change
curs_set( 0 )
tocurs_set( 2 )
, and load up the game. See that the player character is blinking.(This must be done on a curses build).