LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-29-2018, 02:33 PM   #1
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
dialog screen mangled when running slackpkg or pkgtools as root (but not sbopkg)


Slackware64 -current up to date (4.14.31)

This is maybe some configuration problem but I don't know where to start searching.

The mangled dialog screens are slackpkg and pkgtools as root (su -),
but sbopkg runs ok.

Running pkgtools in a console logged in as root is ok, dialog looks ok.

The other one is a dialog command as regular user, it is ok.
Any help is appreciated.
Attached Thumbnails
Click image for larger version

Name:	extrato9.jpg
Views:	89
Size:	85.1 KB
ID:	27333   Click image for larger version

Name:	extrato10.jpg
Views:	74
Size:	72.7 KB
ID:	27334   Click image for larger version

Name:	extrato11.jpg
Views:	57
Size:	82.9 KB
ID:	27335   Click image for larger version

Name:	extrato12.jpg
Views:	55
Size:	47.7 KB
ID:	27336  
 
Old 03-29-2018, 02:38 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Improper $TERM setting, perhaps? Try using TERM=linux.
 
1 members found this post helpful.
Old 03-29-2018, 04:00 PM   #3
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Original Poster
Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
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.)
 
Old 03-29-2018, 05:14 PM   #4
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Quote:
Originally Posted by Paulo2 View Post
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.
 
6 members found this post helpful.
Old 03-29-2018, 08:19 PM   #5
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Original Poster
Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
I reverted to aaa_terminfo-6.0-x86_64-1 from -current of October 2017 and all is working ok now.

Maybe the update aaa_terminfo-6.1-x86_64-1 from Mar 26, 2018 has some problem.

Thanks for looking into this.
 
Old 03-29-2018, 10:52 PM   #6
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Quote:
TERM=linux
No lucky here.
 
Old 03-29-2018, 11:02 PM   #7
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Original Poster
Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Quote:
Originally Posted by USUARIONUEVO View Post
No lucky here.
Here too, terminal freezes running vim, slackpkg.
But reverting as I posted seems to fix it.
 
Old 03-29-2018, 11:04 PM   #8
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Hi again , i little plays, i find "konsole" , from kde , have TERM=xterm , changing this to linux it works.

konsole --> preferences --> edit profile

Im not sure if this config it comes by default...in this case , need to change.
 
Old 03-29-2018, 11:11 PM   #9
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Original Poster
Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
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.

Last edited by Paulo2; 03-29-2018 at 11:12 PM.
 
Old 03-29-2018, 11:19 PM   #10
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Quote:
Originally Posted by Paulo2 View Post
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.
Try TERM=xterm-color instead.
 
1 members found this post helpful.
Old 03-30-2018, 12:16 AM   #11
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Original Poster
Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Quote:
Originally Posted by volkerdi View Post
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.
 
Old 03-30-2018, 03:19 AM   #12
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Rather than overwrite it in the profile, it would be better to configure your terminal emulator to set a correct $TERM in the first place.

If you use xterm-color on a linux console, you're going to end up with bs/del and function key issues, and possibly other problems.

BTW, I don't know why konsole doesn't use it by default, but terminfo does appear to contain a 'konsole' entry. Perhaps that is worth investigating.
 
3 members found this post helpful.
Old 03-30-2018, 09:26 AM   #13
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Original Poster
Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
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.
 
Old 03-30-2018, 11:18 AM   #14
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Quote:
Originally Posted by Paulo2 View Post
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.
 
2 members found this post helpful.
Old 03-30-2018, 12:27 PM   #15
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by volkerdi View Post
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cannot install VLC via sbopkg or slackpkg I Slackware 14.2 jhsdcsjdcvbdj Slackware 28 01-18-2018 02:32 AM
slackpkg upgrade-all dialog error Altiris Slackware 13 12-28-2015 10:42 AM
may be add slackpkg+/sbopkg to disk? krwlr Slackware 5 09-25-2015 03:37 PM
Slackpkg and pkgtools md5sum error piratesmack Slackware 3 04-16-2009 07:18 PM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration