Cataclysm-DDA
Cataclysm-DDA copied to clipboard
curses: debug menu: very poor handling of terminal size
Describe the bug
See title. Also there are weird artifacts in the monster spawn menu, right at the bottom.
Attach save file
n/a
Steps to reproduce
- Open debug menu.
- If your terminal is even slightly too small, it will look not wrap things and instead cut them off.
Try a terminal in "portrait mode" and you'll see even more breakage.
Expected behavior
CC @db48x.
Handles the terminal resolution somehow and maybe displays a warning that the menu needs a bigger terminal size to be displayed if its really needed.
Screenshots
No response
Versions and configuration
I'd paste the debug info here but I can't because the debug.log is not being generated.
This is cdda-linux-curses-x64-2024-09-01-1411.
Additional context
No response
Thanks for filing a bug report, but you should have searched for duplicates. This is a duplicate of #75676.
I searched for duplicates. But this is impossible to search for, especially because "search bar" doesnt yield this and even if I found this, it would not be obvious that this is the same issue.
Are you absolutely positive this is the same issue? This is not a search popup. This used to be an actual searchbar at the bottom of the window.
It’s a popup now because there is no search bar at the bottom of the window.
I updated the issue to reflect the terminal resolution thing only.
What exactly is wrong with it? I don't see any problems in your screenshot, and the window’s size updates as expected when I change my terminal size.
Ok, that particular list needs more work because there are a couple of items in the game with stupidly long names, and the menu is always wide enough for the widest menu item. The rest of the menus don’t have so many problems, and the game complains if you size the terminal below 80×24, so the problems do not become severe.
Notice. There is no letter designation of monsters. That is, before, next to the name of the monster wrote a letter: z - zombie and so on.
I can confirm the debug menu is all over the place for me as well.
What does “all over the place” mean? Be precise. Note that the menus never move.
Notice. There is no letter designation of monsters. That is, before, next to the name of the monster wrote a letter: z - zombie and so on.
I can confirm this is happening to me too.
I don't know if this is a separated bug or the same issue: the / search bar is showing up, but it's either behind the monster list, or with colors very similar to that window's background (you can see it in the middle, it's very dark so it's almost invisible).
- OS: Windows
- OS Version: 10.0.19044.2965 (21H2)
- Game Version: 13f5534 [64-bit]
- Graphics Version: Tiles
- Game Language: English [en]
- Mods loaded: [ Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], Portal Storms Ignore NPCs [personal_portal_storms], Slowdown Fungal Growth [no_fungal_growth] ]