[konsole] [Bug 387709] New: Konsole shouldn't turn "\e[1m" into intensive color format.
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Fri Dec 8 10:48:45 UTC 2017
https://bugs.kde.org/show_bug.cgi?id=387709
Bug ID: 387709
Summary: Konsole shouldn't turn "\e[1m" into intensive color
format.
Product: konsole
Version: master
Platform: Ubuntu Packages
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: font
Assignee: konsole-devel at kde.org
Reporter: cat.hook31894 at gmail.com
Target Milestone: ---
When I was trying the Solarized theme in Konsole, I found that the output of
`ls` command became much less colorful compared to the one run in OSX's buildin
terminal app. (See also: https://bugs.kde.org/show_bug.cgi?id=364660)
The root cause is that Solarized theme somehow considers those 16 system colors
to be not related colors, but Konsole considers colors 8~15 as the intensive
style of colors 0~7. Therefore, when Konsole encounters the escape character
"\e[1m", Konsole will render the rest of the text in intensive color instead of
bold font style.
These logic leads to another problem:
Both "\e[1;34m" and "\e[94m" will lead to same effect of color style.
I think a possible solution is to use "\e[1m" for bold fonts, "\e[9Xm" for
intensive color. And I also implemented it at here:
https://github.com/cathook/kde-konsole/tree/master
(commit diff URL:
https://github.com/cathook/kde-konsole/commit/7a1573b3cce1d562b1dc053cb89f8abca2fc7642)
Another solution might be to extend the color palette from 30 (3 for
foreground, 3 for background, 8 * 3 for normal/intensive/faint system colors)
into 54 (3 for foreground, 3 for background, 16 * 3 for normal/intensive/faint
system colors).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list