Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Q: Why was Stonehenge abandoned? A: It wasn't IBM compatible.


comp / comp.os.linux.misc / KDE Konsole Shows Colours

SubjectAuthor
* KDE Konsole Shows ColoursLawrence D'Oliveiro
`- Re: KDE Konsole Shows Colourscandycanearter07

1
Subject: KDE Konsole Shows Colours
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 1 Aug 2024 01:50 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: KDE Konsole Shows Colours
Date: Thu, 1 Aug 2024 01:50:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <v8epl6$1v4sk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 01 Aug 2024 03:50:31 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f3073cdcc778f11e69aa61b90c869b12";
logging-data="2069396"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+p0D/34uQzihK22xJ0x3D1"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:Mxg0kGLWv5njFzayxm0/mzloJ3g=
View all headers

I noticed this happening a while back, but it took a couple of months
to figure out what was going on.

It appears Konsole has this (undocumented?) feature where, if you
hover over the name of a colour in a terminal session, it will
helpfully pop up this square showing what the colour looks like.

The colour names come from the traditional X11 set in
/usr/share/X11/rgb.txt, with limits: it only looks at single-word
names, and does not match names with numeric suffixes. Thus,
“darkmagenta” will work (case-insensitive match against
“DarkMagenta”), while “dark magenta” only matches the “magenta” part,
and “magenta1” is not recognized at all.

It will also recognize a sequence of 3 or 6 hex digits preceded by “#”
-- “#rgb” or “#rrggbb”, as commonly used in HTML. Just tried 8 hex
digits -- “#rrggbbaa” with alpha transparency -- and that works too.

This feature has been around for a couple of years, that I know of.

Subject: Re: KDE Konsole Shows Colours
From: candycanearter07
Newsgroups: comp.os.linux.misc
Organization: the-candyden-of-code
Date: Fri, 2 Aug 2024 05:50 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.misc
Subject: Re: KDE Konsole Shows Colours
Date: Fri, 2 Aug 2024 05:50:03 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 25
Message-ID: <slrnvaosju.34j6.candycanearter07@candydeb.host.invalid>
References: <v8epl6$1v4sk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 02 Aug 2024 07:50:03 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c019fcf938d6f719ee323756ceea5c25";
logging-data="2820810"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18JyMxGsw+d78zUNO9ohCz8tJmNktVA37Gg1wxhrRq6AA=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:orROMuQNCVjBVVIyVXS7D0HQIzM=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 01:50 this Thursday (GMT):
> I noticed this happening a while back, but it took a couple of months
> to figure out what was going on.
>
> It appears Konsole has this (undocumented?) feature where, if you
> hover over the name of a colour in a terminal session, it will
> helpfully pop up this square showing what the colour looks like.
>
> The colour names come from the traditional X11 set in
> /usr/share/X11/rgb.txt, with limits: it only looks at single-word
> names, and does not match names with numeric suffixes. Thus,
> “darkmagenta” will work (case-insensitive match against
> “DarkMagenta”), while “dark magenta” only matches the “magenta” part,
> and “magenta1” is not recognized at all.
>
> It will also recognize a sequence of 3 or 6 hex digits preceded by “#”
> -- “#rgb” or “#rrggbb”, as commonly used in HTML. Just tried 8 hex
> digits -- “#rrggbbaa” with alpha transparency -- and that works too.
>
> This feature has been around for a couple of years, that I know of.

Interesting, though I probably won't use it.
--
user <candycane> is generated from /dev/urandom

1

rocksolid light 0.9.8
clearnet tor