LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   today's (12-08-2022) konsole upgrade messed prompt (https://www.linuxquestions.org/questions/slackware-14/todays-12-08-2022-konsole-upgrade-messed-prompt-4175719571/)

Aeterna 12-08-2022 07:50 PM

today's (12-08-2022) konsole upgrade messed prompt
 
1 Attachment(s)
please see attachment

GazL 12-09-2022 05:51 AM

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?

Aeterna 12-09-2022 08:11 PM

Quote:

Originally Posted by GazL (Post 6396854)
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

Aeterna 12-09-2022 08:28 PM

1 Attachment(s)
obviously after downgrading konsole, prompt looks as it should :)

jmccue 12-10-2022 08:06 AM

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

ppr:kut 12-10-2022 08:21 AM

Did you open a bug report?

GazL 12-10-2022 09:30 AM

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\]'

Aeterna 12-10-2022 11:25 AM

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.

Aeterna 12-16-2022 10:57 PM

Quote:

Originally Posted by EllenAnderson (Post 6398223)
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.


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