[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.
@Gazl, do you mean the konsole entry in /etc/termcap?
terminfo not termcap. Nothing uses termcap these days. I don't run kde so I can't point you to the specific option, but somewhere in its settings/preferences konsole should allow you to set the terminal type.
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.
I appreciate your input. It seems, however, that we have opened a can of worms already... in the Slackware 14.2 ncurses package, I used a rather old xterm definition. Old, but it worked with just about everything (including konsole). Perhaps I'll revert to that. Once we got the bugs related to the backspace key ironed out, either it worked for everyone or nobody was bothered enough by it to report bugs.
Anyway, I'm still considering what to do about this. Whatever action is taken, I'll be open to any complaints or criticism about. It won't be set in stone.
Only for information , sbopkg aparently is ok , wellcome screen is seeying good , but is not true.
search one package and go build , then see for a moment when start download sources how , text screen its going disordering in sbo menu dialog , like others.
Then i suspect this change affect all dialog tools in minor or mayor portion.
Only with manual intervention , changind the default kde konsole profile to linux works.
l/ncurses-6.1_20180324-x86_64-2.txz: Rebuilt.
Removed "rep=%p1%c\E[%p2%{1}%-%db," from the xterm-new definition. It was not
present in the xterm-new definition shipped in Slackware 14.2 and is causing
problems with dialog.
Ok, I appreciate that you're being pragmatic here, and the frustration in this rant is not aimed at you, but it seems a shame that xterm users must now forgo the advantages/efficiency of having the ECMA-48 specified repeat character sequence simply because konsole's developers were too idle to implement it and too incompetent to give konsole its own unique terminfo entry and use it by default.
Even the basic 'ansi' terminfo entry has this feature enabled!
I won't be following this change here, IMO it's simply too useful a feature to just throw away.
Apologies for the rant: this sort of thing triggers me.
Last edited by GazL; 04-01-2018 at 05:16 AM.
Reason: speeling. ;)
l/ncurses-6.1_20180324-x86_64-3.txz: Upgraded.
Use unmodified upstream terminfo definitions rather than break a feature
of the xterm-new definition for the benefit of a program that can't pick
the right TERM= setting.
Thanks Pat. I really wasn't expecting you to do that, though it feels like the right solution.
Code:
xap/rxvt-unicode-9.22-x86_64-2.txz: Rebuilt.
In the urxvt terminfo definitions, set kbs=^H.
I'm afraid this is incorrect. rxvt-unicode uses ^? for backspace just like the linux console. It was right the way it was.
On the off-chance that it's useful, I've attached a simple ncurses program that I've been toying with to learn how to do robust keyboard handling (still not 100% there: I'm finding keypad(__,True); is as much a hindrance as a help); it is useful for detecting bs/del issues and determining what other sequences the function keys generate in various terminals. If you try it with keypad enabled you'll see the bs/del issue with the new terminfo file vs old.
xap/rxvt-unicode-9.22-x86_64-2.txz: Rebuilt.
In the urxvt terminfo definitions, set kbs=^H.
I'm afraid this is incorrect. rxvt-unicode uses ^? for backspace just like the linux console. It was right the way it was.
Hmmm... why was my backspace key broken then without the change?
Quote:
On the off-chance that it's useful, I've attached a simple ncurses program that I've been toying with to learn how to do robust keyboard handling (still not 100% there: I'm finding keypad(__,True); is as much a hindrance as a help); it is useful for detecting bs/del issues and determining what other sequences the function keys generate in various terminals. If you try it with keypad enabled you'll see the bs/del issue with the new terminfo file vs old.
I remember that program. I'll take a look, thanks.
PS And, of course, now everything seems to work just fine with the default kbs=^?. What can I say - terminal handling has always been "interesting" to say the least. I'll change it back to the upstream defaults. Thanks!
Last edited by volkerdi; 04-02-2018 at 08:06 AM.
Reason: Add PS
Hmmm... why was my backspace key broken then without the change?
It might possibly have been a rogue Rxvt Xresource. URxvt honours both Rxvt.* and URxvt.* resources and rxvt does use kbs=^H by default so there's plenty of scope for things to get messed up.
The program has evolved a little since the last version I posted (I'd forgotten I'd posted it before). I'm using it as a testbed to develop a reusable input function for use in my other ncurses projects. And, yes, the inconsistencies in trying to deal with different terminal emulators are extremely annoying and ncurses/terminfo seem to only get you part of the way there.
Anyway, thanks for your time and efforts on this one.
Hello.
When I put in KDE Console > Settings > Edit current profile: TERM=xterm-color or TERM=linux
in Midnight Commander "F3" (view) key now works like "*" (invert selection), "F2" key punts "/" in command line.
Could it be the same problem like with slackpkg?
After switch to text console (Ctrl+Alt+F6) Midnight Commander F2 and F3 works properly.
Last edited by Olek; 04-03-2018 at 02:52 PM.
Reason: Added information about MC in text console.
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928
Original Poster
Rep:
Quote:
Originally Posted by Olek
Hello.
When I put in KDE Console > Settings > Edit current profile: TERM=xterm-color or TERM=linux
in Midnight Commander "F3" (view) key now works like "*" (invert selection), "F2" key punts "/" in command line.
Could it be the same problem like with slackpkg?
After switch to text console (Ctrl+Alt+F6) Midnight Commander F2 and F3 works properly.
The new default for konsole is TERM=konsole.
From -current ChangeLog.txt
Code:
Sun Apr 1 21:05:03 UTC 2018
...
kde/konsole-4.14.3-x86_64-4.txz: Rebuilt.
Use TERM=konsole.
But Konsole won't pick that change if you have TERM set in '~/.kde/share/apps/konsole/Shell.profile'
(or if you have the file anyway, I guess).
If think it's better delete that file and then run konsole, it will show TERM=konsole, which fixes the mc behaviour.
Pat. Just wanted to say that I think you came up with a good solution for this by splitting the xterm/xterm-new definitions the way you did in the latest current updates. Real xterm users just need to make sure they set XTerm.termName: xterm-new in their Xresources, and everyone else is happy using the older more compatible definitions. Nicely done. Thank you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.