[SOLVED] dialog screen mangled when running slackpkg or pkgtools as root (but not sbopkg)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928
Original Poster
Rep:
Thanks for the answer, $TERM was set to xterm in X terminal, running TERM=linux fixed pkgtool.
I put in root's .bash_profile 'TERM=linux'.
(but sbopkg runs ok with TERM=xterm, and the regular user has TERM=xterm too,
and dialog looks ok.)
Thanks for the answer, $TERM was set to xterm in X terminal, running TERM=linux fixed pkgtool.
I put in root's .bash_profile 'TERM=linux'.
(but sbopkg runs ok with TERM=xterm, and the regular user has TERM=xterm too,
and dialog looks ok.)
It looks like sbopkg contains some code to use xterm-color within the script.
I'll look into this. It seems a similar workaround would be valuable to pkgtool and slackpkg.
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928
Original Poster
Rep:
Yes, I saw that too, it has TERM=xterm by default.
I wrote TERM=linux there and that solved the problem with
slackpkg and pkgtool (that was when I marked the thread [Solved], too soon...),
but it freezes the terminal when running vim and slackpkg, and possibly others.
But the problem happens with Xfce terminal and XTerm as well.
Yes, I saw that too, it has TERM=xterm by default.
I wrote TERM=linux there and that solved the problem with
slackpkg and pkgtool (that was when I marked the thread [Solved], too soon...),
but it freezes the terminal when running vim and slackpkg, and possibly others.
But the problem happens with Xfce terminal and XTerm as well.
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928
Original Poster
Rep:
Quote:
Originally Posted by volkerdi
Try TERM=xterm-color instead.
After reinstalling aaa_terminfo-6.1-x86_64-1 from Mar 26, 2018 and
setting TERM=xterm-color, it seems that all is working ok.
Thanks again Patrick, and thanks Usuarionuevo.
I put TERM=xterm-color in root's .bash_profile and now, on a console,
instead of 'linux', $TERM is set to 'xterm-color'. It is working ok too,
I don't know if has some side effect.
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928
Original Poster
Rep:
Following GazL advice, I will leave root's profile alone and set TERM to 'konsole' only in konsole,
since I login as 'su -' mainly to move files around, and install from SBo and third party mirrors with slackpkg.
@Gazl, do you mean the konsole entry in /etc/termcap?
Code:
# make a default entry for konsole
konsole|KDE console window:\
:tc=konsole-xf4x:
It is working ok too.
The files in aaa_terminfo package are for non X console, is this right?
Excuse any naive questions, for me this terminal/console subject
is in the dark side.
The files in aaa_terminfo package are for non X console, is this right?
Excuse any naive questions, for me this terminal/console subject
is in the dark side.
The files in aaa_terminfo are a subset of the terminfo library shipped in the ncurses package. In general, terminfo is for any console, be it an actual terminal, virtual terminal, xterm or other X console, etc. The aaa_terminfo package contains the more commonly used ones, including xterm and linux. And of course all the DEC VT* terminals, since everyone uses those. ;-)
At this point I'm wondering if the xterm entry shouldn't just point to xterm-color. No idea though if there's a legitimate reason for anyone to require the plain xterm terminfo rather than xterm-color.
At this point I'm wondering if the xterm entry shouldn't just point to xterm-color. No idea though if there's a legitimate reason for anyone to require the plain xterm terminfo rather than xterm-color.
Please don't. A number of terminal emulators set TERM to 'xterm' (though they really should probably all have their own definitions) and there's no guarantee that they'll support all the features defined in xterm-color. There's also non-linux implementations of xterm to consider which may also only support the basic features. Rather than mess with the stock definitions, I think it's better to fix the underlying problem: which in this case seems to be that konsole isn't compatible with the 'xterm' definition, and as such I'd argue shouldn't be using it in the first place.
The extra colours aren't the only differences between the xterm and xterm-color definitions, so you might be opening a can of worms if you followed through on this one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.