You are not logged in.

#1 2024-03-09 08:46:49

kyngs
Member
Registered: 2022-10-16
Posts: 51

[SOLVED] KDE 6, paru in konsole has some weird colors

After the update to KDE 6, paru has most of its text entirely blue: https://imgur.com/a/GEgGI8V

I'm pretty confident that this is a Konsole issue, as xterm does not seem to exhibit this behavior: https://imgur.com/a/Tr7Fyyf

Does anyone have the same issue? Is it an issue with my setup?

Last edited by kyngs (2024-03-09 14:44:22)

Offline

#2 2024-03-09 09:04:04

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,674

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

Either paru discrimitnates $TEM or konsole represents bold text as blue.
What does the output of

#!/bin/sh
    for x in 0 1 4 5 7 8; do
        for i in {30..37}; do
            for a in {40..47}; do
                printf "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0m "
            done
            echo
        done
    done
    echo

look like?

Last edited by seth (2024-03-09 09:05:33)

Offline

#3 2024-03-09 09:25:48

kyngs
Member
Registered: 2022-10-16
Posts: 51

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

seth wrote:

Either paru discrimitnates $TEM or konsole represents bold text as blue.
What does the output of

#!/bin/sh
    for x in 0 1 4 5 7 8; do
        for i in {30..37}; do
            for a in {40..47}; do
                printf "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0m "
            done
            echo
        done
    done
    echo

look like?

Hi, it looks like this: https://imgur.com/a/AW0w19d (the circled part is blinking)

What is interesting is, that it started happening only after the update to KDE 6. I've checked the paru repo git log and no commit seems to indicate it's an issue on their side.

Last edited by kyngs (2024-03-09 09:28:25)

Offline

#4 2024-03-09 09:37:18

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,674

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

The blinking is expectable, that's what the mode does.
In general it's what you expect, check the $TERM in xterm and use it in konsole, eg.

TERM=xterm paru -…

nb. that it's generally a HORRIBLE IDEA to force the $TERM environment, we're just doing so to figure whether paru discriminates by it.

Offline

#5 2024-03-09 11:42:34

kyngs
Member
Registered: 2022-10-16
Posts: 51

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

seth wrote:

The blinking is expectable, that's what the mode does.
In general it's what you expect, check the $TERM in xterm and use it in konsole, eg.

TERM=xterm paru -…

nb. that it's generally a HORRIBLE IDEA to force the $TERM environment, we're just doing so to figure whether paru discriminates by it.

TERM in xterm is, "xterm", in Konsole "xterm-256color". When I try to run paru with the

TERM=xterm

envvar, it seems to have no effect. See: https://imgur.com/a/jqyTrpi

Last edited by kyngs (2024-03-09 11:42:50)

Offline

#6 2024-03-09 12:50:33

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,674

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

The thing says "sudo", sudo will drop most/all of the environment.

type paru
sudo printenv
sudo TERM=xterm /usr/bin/paru

Offline

#7 2024-03-09 12:55:28

kyngs
Member
Registered: 2022-10-16
Posts: 51

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

seth wrote:

The thing says "sudo", sudo will drop most/all of the environment.

type paru
sudo printenv
sudo TERM=xterm /usr/bin/paru

Oh, I've not realized that as paru invokes sudo automatically. Unfortunately setting the envvar the correct way did not help. https://imgur.com/a/Frv6aXo

Offline

#8 2024-03-09 13:02:16

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,674

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

According to https://github.com/Morganamilo/paru/blo … aru.8#L801 paru uses colors depending on the pacman.conf - you should be able to simply disable them there.
Idk why it discriminates the TEs here, but according to all screenshots I've seen, the konsole one is actually the normal one.

Offline

#9 2024-03-09 13:05:20

kyngs
Member
Registered: 2022-10-16
Posts: 51

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

seth wrote:

According to https://github.com/Morganamilo/paru/blo … aru.8#L801 paru uses colors depending on the pacman.conf - you should be able to simply disable them there.
Idk why it discriminates the TEs here, but according to all screenshots I've seen, the konsole one is actually the normal one.

I'm aware that you can disable the colors completely, but I just want them to work normally (as they did in KDE 5). When you compare the video in their README you can easily see that the white bold color has been replaced by a blue bold one. Thanks for your thoughts tho, maybe I'll go and report a bug there.

Offline

#10 2024-03-09 13:10:43

icar
Member
Registered: 2020-07-31
Posts: 549

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

Please share the bug report here, I have the same issue and it's annoying.

Offline

#11 2024-03-09 13:17:51

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,674

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

I guess some elements (eg. the ::) are supposed to be blue and konsole then stumbles over the reset sequence.

This here should™ print a blue fat "foo" and a default fat "bar":

printf '\e[1;34mfoo\e[0;1mbar\n'

Offline

#12 2024-03-09 14:09:44

kyngs
Member
Registered: 2022-10-16
Posts: 51

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

seth wrote:

I guess some elements (eg. the ::) are supposed to be blue and konsole then stumbles over the reset sequence.

This here should™ print a blue fat "foo" and a default fat "bar":

printf '\e[1;34mfoo\e[0;1mbar\n'

Yeah it really does seem that konsole ignores the reset sequence: https://imgur.com/a/2p7MwfW
So, should I go ahead and submit it to KDE's bug tracker?

Last edited by kyngs (2024-03-09 14:12:46)

Offline

#13 2024-03-09 14:16:03

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,674

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

So, should I go ahead and submit it to KDE's bug tracker?

Yup.
(Sorry, I mistook the original complaint as "why does konsole have colors and xterm doesn't", I missed that it was toomuch™ color only)

Offline

#14 2024-03-09 14:22:40

kyngs
Member
Registered: 2022-10-16
Posts: 51

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

seth wrote:

So, should I go ahead and submit it to KDE's bug tracker?

Yup.
(Sorry, I mistook the original complaint as "why does konsole have colors and xterm doesn't", I missed that it was toomuch™ color only)

Just before I'm going to submit the bug, do you have any idea why the

\e[0;1m

code does not work, but

\e[0m

Does?
What's the difference between them?

Last edited by kyngs (2024-03-09 14:22:57)

Offline

#15 2024-03-09 14:24:28

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,674

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

"oversight bug" - "\e[0;1m" is "default,bold", "\e[0m" is the simple "back to default" sequence.

Offline

#16 2024-03-09 14:43:29

kyngs
Member
Registered: 2022-10-16
Posts: 51

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

Here's the KDE bug for anyone interested: https://bugs.kde.org/show_bug.cgi?id=482985
@icar
Gonna mark this as solved.

Offline

#17 2024-03-10 15:35:24

Funny0facer
Member
From: Germany
Registered: 2022-12-03
Posts: 159

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

This is not a bug, but a part of the breeze color profile. See "intense color" in my screenshot.
https://ibb.co/R2RzJDt

Offline

#18 2024-03-10 17:51:44

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,674

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

https://i.imgur.com/tVSJIek.png seems to use normal colors, though?
What does

printf '\e[1;34mfoo\e[0;1mbar\n'
printf '\e[1;34mfoo\e[0m\e[1mbar\n'
printf '\e[0;1mfoo\e[8mbar\n'

look like for you?

Offline

#19 2024-03-10 18:16:43

kyngs
Member
Registered: 2022-10-16
Posts: 51

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

seth wrote:

https://i.imgur.com/tVSJIek.png seems to use normal colors, though?
What does

printf '\e[1;34mfoo\e[0;1mbar\n'
printf '\e[1;34mfoo\e[0m\e[1mbar\n'
printf '\e[0;1mfoo\e[8mbar\n'

look like for you?

It looks like this to me: https://imgur.com/a/R5KgkM7

Offline

#20 2024-03-10 18:19:46

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,674

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

'key, bold and intense are both blue and even "\[e0m" doesn't change that.
It's probably indeed just a rather questionable color theme.

Offline

#21 2024-03-10 18:20:19

kyngs
Member
Registered: 2022-10-16
Posts: 51

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

I think Funny0facer is onto something here, as setting my fg intense color from: https://imgur.com/a/6KUTaCM to https://imgur.com/a/2ifDJB0 does solve the issue: https://imgur.com/a/hkH3TwQ https://imgur.com/a/KY7yWHS

However, I do believe that this is not intentional as it didn't work like this in KDE 5 and it does produce some rather questionable results. I'm gonna add it to the KDE bug.

Last edited by kyngs (2024-03-10 18:21:00)

Offline

#22 2024-03-12 14:51:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,836

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

You can configure konsole's color profile in the profile settings FWIW. This change for the "breeze color theme" is definitely intentional.

Offline

#23 2024-03-12 15:12:11

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,674

Re: [SOLVED] KDE 6, paru in konsole has some weird colors

And profoundly stupid.
If you've some "default on blue" setup and there's a bold character, it turns invisible. Great.

The reason in https://invent.kde.org/utilities/konsol … quests/920 was to get colored manpages.
Tell them to

export LESS_TERMCAP_mb=$'\e[1;34m'     # begin bold
export LESS_TERMCAP_md=$'\e[1;34m'     # begin blink
export LESS_TERMCAP_so=$'\e[01;44;37m' # begin reverse video
export LESS_TERMCAP_us=$'\e[01;32m'    # begin underline
export LESS_TERMCAP_me=$'\e[0m'        # reset bold/blink
export LESS_TERMCAP_se=$'\e[0m'        # reset reverse video
export LESS_TERMCAP_ue=$'\e[0m'        # reset underline

and undo this nonsense.

Offline

Board footer

Powered by FluxBB