FS#1259 - Garbled display with xfce4-terminal (terminfo)
A very nasty bug I wasn’t able to find an answer to.
I compiled stuff (buildroot) using menuconfig, the menu display was fine in xfce4-terminal (See screenshot #1)
I restarted the config a few days later with the same command :
$ make menuconfig
and this time the display was messed up (See screenshot #2)
After investigation, I noticed a directory (filled with stuff) have been created in my home folder :
.terminfo
I don’t know why. But anyway, if I delete it, then the display is ok again.
I noticed that if I use good old xterm terminal, then the display is fine even if the .terminfo directory is present. (it uses “xterm” instead of xterm-256color)
But, with xfce4-terminal (and others, I tried with gnome-terminal, sakura..), the display is messed up if the .terminfo directory is present in my home folder.
I also noticed that if I run the command in a screen session, the issue is not present.
(I open xfce4-terminal)
$ screen $ printenv TERM screen.xterm-256color $ make menuconfig (or htop, or other program using ncurses)
= display ok
but with default :
(I open xfce4-terminal)
$ printenv TERM xterm-256color make menuconfig (or htop, or other program using ncurses)
= display messed up if .terminfo directory is present
So I have no idea why this .terminfo directory is generated. What could trigger its generation ? Is that an issue with ncurses or something else ?
Thanks for your help
27.10.2021 21:24
Reason for closing: Won't implement
Additional comments about closing:
Issue cannot be resolved as XFCE was
removed in Hyperbola Milky Way 0.4
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
The content of .terminfo directory is the same as what what the following package provides :
"ncurses-term" https://packages.debian.org/en/stretch/ncurses-term
But this package isn't provided by Hyperbola (or is it integrated to ncurses base ??) so I'm wondering how it ends up in my /home folder.
After further investigation, "buildroot" (https://buildroot.org/) menuconfig seems to trigger the .terminfo directory generation. Because it never happened before.
infocmp -D
/home/fablamar/.terminfo
/usr/share/terminfo
So it seems the generated .terminfo directory conflicts with the system-wide one provided. (/usr/lib/terminfo)... which could maybe explain the display error ?
Indeed.
Setting :
in
fixed the issue !
Tell me if you think it was the correct way to proceed. Is there any "con" doing it that way ?
I don't know about it since i'm not using XFCE4, but seems that way is correct because we are a distro "do-yourself", however there are some basic features made by us by default, so i'm assigning this task for our debuggers to make testing.