LinuxQuestions.org
Review your favorite Linux distribution.
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 12-08-2022, 07:50 PM   #1
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
today's (12-08-2022) konsole upgrade messed prompt


please see attachment
Attached Thumbnails
Click image for larger version

Name:	messed up prompt.png
Views:	105
Size:	5.8 KB
ID:	40020  
 
Old 12-09-2022, 05:51 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
looks like underscore is being turned on for the green on grey sections.
What escape sequences are you using for that section of PS1?

Prior to kernel 3.16 the linux console used to turn underscore on for \e[38m. Perhaps konsole has started honouring that old behaviour.

Also, what is your $TERM set to?

Last edited by GazL; 12-09-2022 at 05:55 AM.
 
Old 12-09-2022, 08:11 PM   #3
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by GazL View Post
looks like underscore is being turned on for the green on grey sections.
What escape sequences are you using for that section of PS1?

Prior to kernel 3.16 the linux console used to turn underscore on for \e[38m. Perhaps konsole has started honouring that old behaviour.

Also, what is your $TERM set to?
Thank you GazL for helping.
Quote:
PS1='\[\033[0;92;4m\]\342\224\214\342\224\200\[\033[0m\]\[\e[42m\] \u@\h \[\e[0;32m\]\[\e[102m\]$triangle\[\e[0;30m\]\[\e[102m\] \w \[\e[0;92m\]\[\e[40m\]$triangle\[\e[0m\]\[\e[40m\]\n\[\033[0;92;4m\]\342\224\224\342\224\200\342\224\200\[\033[0;92;1m\]▶ \[\033[0m\]'
that is my prompt, no \e[38m

Quote:
echo $TERM
xterm-256color
and
Quote:
echo $COLORTERM
truecolor
not sure what's wrong

just for testing reverted to the previous version of konsole:
konsole-22.08.3-x86_64-1 and all works, so this is definitely a problem with konsole

Last edited by Aeterna; 12-09-2022 at 08:17 PM.
 
Old 12-09-2022, 08:28 PM   #4
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Original Poster
Rep: Reputation: Disabled
obviously after downgrading konsole, prompt looks as it should
Attached Thumbnails
Click image for larger version

Name:	prompt old.png
Views:	42
Size:	6.7 KB
ID:	40022  
 
Old 12-10-2022, 08:06 AM   #5
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 691
Blog Entries: 1

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
I wonder of the new konsole thinks it fixed a 'bug'. I suspect xterm may be thought of 'doing things right'.

I tried your prompt on xterm(1), and it matches your 'bad' prompt. On Slackware 15.0, under konsole, it looks different and better, it has no underlines.

Both runs used a TERM of xterm-256color

Last edited by jmccue; 12-10-2022 at 08:10 AM.
 
Old 12-10-2022, 08:21 AM   #6
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Did you open a bug report?
 
Old 12-10-2022, 09:30 AM   #7
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Try removing the ";4" from both occurrences of \033[0;92;4m
i.e.
PS1='\[\033[0;92m\]\342\224\214\342\224\200\[\033[0m\]\[\e[42m\] \u@\h \[\e[0;32m\]\[\e[102m\]$triangle\[\e[0;30m\]\[\e[102m\] \w \[\e[0;92m\]\[\e[40m\]$triangle\[\e[0m\]\[\e[40m\]\n\[\033[0;92m\]\342\224\224\342\224\200\342\224\200\[\033[0;92;1m\]▶ \[\033[0m\]'
 
2 members found this post helpful.
Old 12-10-2022, 11:25 AM   #8
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Original Poster
Rep: Reputation: Disabled
Thank you all.
This is definitely a bug, though I doubt that anyone will bother. I am going to submit a bug report just to have clear conscience

Thank you GrazL for pointing out the solution, removing only 4 will leave arrow green so I also changed
\033[0;92;1m
to
\033[0;92;0m
or replace 4 with 2 (not bold) and it works too.

Last edited by Aeterna; 12-10-2022 at 11:29 AM.
 
2 members found this post helpful.
Old 12-16-2022, 10:57 PM   #9
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EllenAnderson View Post
Is this fixed?
No, but there is easy workaround as I mentioned above by replacing bold font with normal font. So it is possible to use normal font until bold font is fixed.
 
  


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
messed up Ubunto, messed it up good... ButterflyMelissa Linux - Newbie 6 02-13-2015 08:28 AM
[SOLVED] open Konsole after boot and login, run a command, keep Konsole open for use heronlin Linux - General 3 10-20-2014 03:01 AM
Konsole always give SuperUser Konsole - can't get regular shell checkmate3001 Linux - Desktop 3 08-05-2008 10:00 AM
getting updates today is IMPOSSIBLE (today)!! mtdew3q SUSE / openSUSE 3 10-17-2007 12:53 AM
konsole acts as "Root Konsole" ab44045 Linux - General 11 06-11-2007 05:18 PM

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

All times are GMT -5. The time now is 11:15 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