thestinger / termite

Termite is obsoleted by Alacritty. Termite was a keyboard-centric VTE-based terminal, aimed at use within a window manager with tiling and/or tabbing support.
https://github.com/alacritty/alacritty
2.74k stars 241 forks source link

ncurses/curses not redrawing #769

Closed mmskv closed 3 years ago

mmskv commented 3 years ago

Hi,

Ncurses interfaces don't redraw on some programs after i resize them. So i have pinned down termite to be the cause of it, as rxvt-unicode draws ncurses fine.

Ncurses programs that appear to work: vim, nano, tmux, mutt?, alsamixer, top?. Ncurses programs that don't work: mocp, ranger (although it uses python curses module), menuconfig, htop.

Termite works fine with ncurses on ArchLinux, but on fresh Gentoo install I can't make it work.

What did not help: Recompiled sys-libs/ncurses with unicode, threads, gpm, cxx, tinfo support Recompiled termite from this repository, tried two portage overlays - gig and gentoo-zh, compiled vte-ng from gentoo-zh, which did not work. Then compiled vte with termite patch and termite itself, from gig overlay. It did not work too.

Here is the example of mocp not redrawing (<c-r> did not work too). image

and this is if I shrink window: image

same problem with ranger (:refresh did not do anything): https://user-images.githubusercontent.com/47359245/101955755-6f097980-3c0f-11eb-9f0f-1c7da6c53687.png https://user-images.githubusercontent.com/47359245/101955773-7a5ca500-3c0f-11eb-8e28-cd13360f76f0.png =100x

works fine with urxvt: https://user-images.githubusercontent.com/47359245/101955834-982a0a00-3c0f-11eb-8d7f-dcf37de59aad.png https://user-images.githubusercontent.com/47359245/101955849-9f511800-3c0f-11eb-9044-ceed26548558.png

This is how menuconfig looks when shrinked: https://user-images.githubusercontent.com/47359245/101956354-809f5100-3c10-11eb-89ff-52fb233822fb.png

Perhaps this issue is related to #665 or #88, but i did not experience wrong scale during startup, only after resizes.

Information about installed packages: termite v13 (Upstream version did not work too) vte - 0.48.4:2.91 (vte-ng did not work too)

mmskv commented 3 years ago

Fix: https://github.com/fish-shell/fish-shell/issues/7707

Adding these lines to config.fish fixed the issue for me.

set --unexport COLUMNS
set --unexport LINES