Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Screen flicker #190

Open
onsamyj opened this issue Nov 21, 2022 · 12 comments
Open

[bug] Screen flicker #190

onsamyj opened this issue Nov 21, 2022 · 12 comments
Labels
bug Something isn't working

Comments

@onsamyj
Copy link

onsamyj commented Nov 21, 2022

When it scans it flickers, and after that, any time I move the cursor (with arrow keys or mouse) it flickers.

I use Windows Terminal, Windows 11 21H2/22H2, nothing else fancy, I don’t think (feel free to ask). No other CLI app does that. Flicker tested on two machines.

Don’t flicker in WSL or VirtualBox Linux.

@dundee
Copy link
Owner

dundee commented Nov 21, 2022

Could you try running gdu with --no-mouse? Does it work better?

@onsamyj
Copy link
Author

onsamyj commented Nov 21, 2022 via email

@dundee dundee added the bug Something isn't working label Nov 22, 2022
@HubKing
Copy link

HubKing commented Nov 26, 2022

I came here to report the same thing. If I use SSH on Windows (whether cmd.exe or the new Windows Terminal) to connect to Manjaro Linux (AUR 5.20.0), gdu flickers every time I press an arrow key. --no-mouse made no difference.

I tried ncdu in the same settings, and it did not flicker. Also, I tried gdu locally on the Manjaro, and it did not flicker.

I hope this would be fixed. It is very distracting.

@dundee
Copy link
Owner

dundee commented Dec 16, 2022

Initial investigation didn't show up much. Looks like mainly the text rendering consumed most of the cpu.

table-refresh

@HubKing
Copy link

HubKing commented Jan 23, 2023

Initial investigation didn't show up much. Looks like mainly the text rendering consumed most of the cpu.

Since NCDU does not flicker over SSH, won't the problem be solved, if you copy its code and do the same thing for the display part?

2023-01-23-12-30-56.mp4

@onsamyj
Copy link
Author

onsamyj commented Jan 23, 2023

NCDU

As I pointed out, gdu itself does not flicker in WSL.

@dundee
Copy link
Owner

dundee commented Feb 3, 2023

Gdu is written in different language (Golang) than Ncdu (C).

@Vanav
Copy link

Vanav commented Mar 29, 2023

I confirm this issue over SSH. Screen flickers on scanning, and on moving with arrow keys. I don't see this issue with other TUI applications. --no-mouse and --no-color make no difference.
Environment: Windows 11, SecureCRT, SSH, XTerm ANSI with 256 colors, Ubuntu 22 on server.
Video:

2023-03-29_14-56-25.mp4

@dundee
Copy link
Owner

dundee commented May 31, 2023

I have upgraded both tview and tcell libraries in v5.24.0. Could you check whether the behavior is still the same?

@onsamyj
Copy link
Author

onsamyj commented Jun 1, 2023

Same flicker.

@danie-dejager
Copy link
Collaborator

danie-dejager commented Jun 1, 2023

I've upgraded to 5.24.0 and no longer experience flicker on Centos 7 and Oracle Linux 9 in my Windows Terminal sessions.

@popey
Copy link

popey commented Jan 27, 2024

For the record, seeing the same with --no-mouse and --no-color in Windows PowerShell terminal on Windows 11 having installed v1.6.3482 viaWinget. Is this something to do with whatever go terminal library is being used, as it's seemingly universally a problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants