-
Notifications
You must be signed in to change notification settings - Fork 622
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
tig window flickers #1180
Comments
Have you tried with a different terminal emulator ? |
@koutcher right, happens only in xterm which I use. In, konsole, does not reproduce. |
@jirislaby, the flickering on your video looks a bit like some double-buffer artefact, maybe you can confirm with strace if tig is doing something while it happens. Tig is using some optimisation tricks (see init_display() in src/display.c), you could try to unset |
Wow: unset XTERM_VERSION
export TERM_PROGRAM=gnome-terminal
tig v5.16-rc1..v5.16 The issue is gone, the same as with: unset XTERM_VERSION
export TERM_PROGRAM=Apple_Terminal
tig v5.16-rc1..v5.16 For confirmation, the issue is back with: export XTERM_VERSION='XTerm(370)'
tig v5.16-rc1..v5.16 So it's Lines 695 to 723 in 7218788
|
It's also slightly problematic over ssh. $ env|grep TERM
COLORTERM=1
TERM=xterm-256color So the detection above doesn't work there too. |
The extra redrawwin() added by b445bae to fix a scrolling bug in (u)xterm is causing flickering when paging in XTerm(370). As the original issues with xterm and gnome-terminal cannot be reproduced anymore even on a now antique distro, revert the associated workarounds. Fixes jonas#1180
I tried to reproduce the original issues with xterm and gnome-terminal on a venerable RHEL 4 and couldn't succeed, so I think it is not unreasonable to believe we can now remove these hacks safely. |
Very often, it happens that the tig window flickers or show half screen old+half screen new content. This happens especially when paging (pg-up, pg-down) through history or patch.
If I run for example this in the linux kernel:
I see this:
Then, if I navigate through it, I see:
https://user-images.githubusercontent.com/530775/151510043-2aab187f-516c-46f4-9b89-1495e4d02a03.mp4
I don't know if this is tig's, curses, compositor (plasma on wayland), or gfx driver (i915 -- KMS) issue. However, I don't see it with any other app (incl. kernel's menuconfig, vim, less -- the latter two seem to use only tinfo, not curses).
The text was updated successfully, but these errors were encountered: