LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-30-2018, 12:29 PM   #16
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018

Quote:
Originally Posted by Paulo2 View Post
@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.
 
1 members found this post helpful.
Old 03-30-2018, 12:37 PM   #17
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,503

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Quote:
Originally Posted by GazL View Post
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.
 
Old 03-30-2018, 01:20 PM   #18
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Okeydoke, I'll butt-out until you decide what's what.
 
Old 03-30-2018, 06:50 PM   #19
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
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.
 
Old 04-01-2018, 05:05 AM   #20
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Code:
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. ;)
 
1 members found this post helpful.
Old 04-02-2018, 03:33 AM   #21
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Code:
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.

Last edited by GazL; 06-06-2018 at 01:02 PM.
 
1 members found this post helpful.
Old 04-02-2018, 07:56 AM   #22
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,503

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Quote:
Originally Posted by GazL View Post
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.
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
 
1 members found this post helpful.
Old 04-02-2018, 08:37 AM   #23
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Quote:
Originally Posted by volkerdi View Post
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.
 
Old 04-03-2018, 02:46 PM   #24
Olek
Member
 
Registered: Jul 2012
Location: Wroclaw Poland
Distribution: Slackware
Posts: 110

Rep: Reputation: 27
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.
 
Old 04-03-2018, 05:17 PM   #25
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 Olek View Post
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.

Last edited by Paulo2; 04-03-2018 at 05:21 PM.
 
1 members found this post helpful.
Old 04-21-2018, 02:04 PM   #26
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
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.
 
4 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 10:25 AM.

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