packages icon indicating copy to clipboard operation
packages copied to clipboard

bash: Programs that use ncurses do not resize dynamically

Open uni-dos opened this issue 1 year ago • 10 comments
trafficstars

Please confirm there isn't an existing open bug report

  • [X] I have searched open bugs for this issue

Summary

Applications that use ncurses such as htop, nvtop, and radeontop have their contents weirdly rendered when the terminal is resized.

Steps to reproduce

  1. Open htop/nvtop.
  2. Resize the window

Expected result

The TUI should resize to the appropriate size of the terminal.

Actual result

The TUI contents do not take the full space of the terminal when maximized. When TUI apps are opened in a maximized terminal and resized the contents are not properly arranged.

Environment

  • [X] Is system up to date?

Repo

Shannon (stable)

Desktop Environment

Plasma

System details

System: Host: ryzentop Kernel: 6.8.10-291.current arch: x86_64 bits: 64 Desktop: KDE Plasma v: 6.0.4 Distro: Solus 4.5 resilience Machine: Type: Desktop System: Micro-Star product: MS-7C92 v: 1.0 serial: Mobo: Micro-Star model: MPG B550I GAMING EDGE MAX WIFI (MS-7C92) v: 1.0 serial: UEFI: American Megatrends LLC. v: 1.F0 date: 11/01/2023 CPU: Info: 8-core AMD Ryzen 7 5800X3D [MT MCP] speed (MHz): avg: 3517 min/max: 550/4550 Graphics: Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] driver: amdgpu v: kernel Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 23.2.6 compositor: kwin_wayland driver: N/A resolution: 1920x1080 API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.0.7 renderer: AMD Radeon RX 6600 XT (radeonsi navi23 LLVM 16.0.6 DRM 3.57 6.8.10-291.current) Network: Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi Device-2: Realtek RTL8125 2.5GbE driver: r8169 Drives: Local Storage: total: 2.73 TiB used: 101.73 GiB (3.6%) Info: Memory: total: 32 GiB available: 31.28 GiB used: 3.83 GiB (12.2%) Processes: 374 Uptime: 26m Shell: Bash inxi: 3.3.34

Other comments

No response

uni-dos avatar May 22 '24 18:05 uni-dos

I can't reproduce this with konsole on Plasma Wayland. Is this still reproducible for you after the latest Qt and Plasma updates?

ReillyBrogan avatar May 27 '24 00:05 ReillyBrogan

I can't reproduce this with konsole on Plasma Wayland. Is this still reproducible for you after the latest Qt and Plasma updates?

Yes, it's still reproducible after updating.

uni-dos avatar May 27 '24 00:05 uni-dos

I need a bit more reproduction details then. Can you take a screencast of it while it's happening?

ReillyBrogan avatar Jun 10 '24 21:06 ReillyBrogan

@ReillyBrogan Screencast_20240610_144027.webm

uni-dos avatar Jun 10 '24 21:06 uni-dos

I am having the same bug on budgie. Tested with solus 4.5 iso fresh install and the bug is not present. After updating to the latest packages the bug is present.

To reproduce: open nano and try to resize the terminal

andreibuh41 avatar Aug 05 '24 14:08 andreibuh41

I can only reproduce when I switch to bash (my usual shell is zsh)

Staudey avatar Aug 05 '24 14:08 Staudey

I am not able to reproduce this with zsh or fish. I can reproduce it regardless of terminal application, with bash In bash, the problem can be reproduced with any cli application

TraceyC77 avatar Aug 05 '24 14:08 TraceyC77

I installed zsh and run zsh and I can still reproduce the bug. I also tried a couple of terminal from flathub and still can reproduce the bug. LE: After running chsh and choosing /bin/zsh and rebooting resizing works I also tested with nu shell and resizing works.

My conclusion this bug is related to bash

andreibuh41 avatar Aug 05 '24 15:08 andreibuh41

The last bash related pull request was getsolus/packages/pull/2670

@ReillyBrogan ping

TraceyC77 avatar Aug 05 '24 17:08 TraceyC77

Digging through commits, bash was updated 4 days ago ReillyBrogan bash: Update to v5.2.32

TraceyC77 avatar Aug 05 '24 17:08 TraceyC77

If you launch htop or nvtop from it's desktop entry, they are able to dynamically resize.

uni-dos avatar Aug 26 '24 16:08 uni-dos

@uni-dos, @andreibuh41 is this still an issue on either of your systems? i just tested again with bash. Both nvtop and htop resize properly. There have been a few improvements to bash since last summer.

TraceyC77 avatar Feb 27 '25 16:02 TraceyC77

Yes, it is still present.

uni-dos avatar Feb 27 '25 16:02 uni-dos