Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

curses: debug menu: very poor handling of terminal size

Open NetSysFire opened this issue 1 year ago • 11 comments

Describe the bug

See title. Also there are weird artifacts in the monster spawn menu, right at the bottom. image

Attach save file

n/a

Steps to reproduce

  1. Open debug menu.
  2. 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

NetSysFire avatar Sep 01 '24 23:09 NetSysFire

Thanks for filing a bug report, but you should have searched for duplicates. This is a duplicate of #75676.

db48x avatar Sep 02 '24 00:09 db48x

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.

NetSysFire avatar Sep 02 '24 00:09 NetSysFire

It’s a popup now because there is no search bar at the bottom of the window.

db48x avatar Sep 02 '24 00:09 db48x

I updated the issue to reflect the terminal resolution thing only.

NetSysFire avatar Sep 02 '24 00:09 NetSysFire

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.

db48x avatar Sep 02 '24 00:09 db48x

image

NetSysFire avatar Sep 02 '24 00:09 NetSysFire

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.

db48x avatar Sep 02 '24 01:09 db48x

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.

1

IdleSol avatar Sep 02 '24 06:09 IdleSol

I can confirm the debug menu is all over the place for me as well.

HenicTheSodgehog avatar Sep 02 '24 13:09 HenicTheSodgehog

What does “all over the place” mean? Be precise. Note that the menus never move.

db48x avatar Sep 02 '24 17:09 db48x

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).

1

  • 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] ]

RedMisao avatar Sep 04 '24 13:09 RedMisao