[dev] [PATCH] Don't make bold text bright with default color

From: Yuri Karaban <suckless_AT_dev97.com>
Date: Tue, 15 Apr 2014 17:39:18 +0300

From: Yuri Karaban <dev_AT_dev97.com>


I found that st behavior is inconsistent with XTerm and RXVT in regard
to handling bold text. XTerm and RXVT are not making bold font bright
if default color is used (with light background and black foreground
it's looking rather ugly, brightened black font becomes gray and
unreadable on light gray background).

There is one subtle detail, foreground color is not brightened only if
it's implicit, therefore if default color is black:

echo -e "\033[1m Bold but not bright"

should print the string in bold with black color

but when black is specified explicitly like:

echo -e "\033[30;1m Bold and bright"
echo -e "\033[30m \033[1m Bold and bright"

it should print the string in bold but with gray (brightened) color.

Please consider adopting standard behavior, otherwise it's making the
bold text hard to read on a gray background ;-)

Yuri Karaban (1):
  Show bold glyphs in bright color only when color is explicit

 st.c | 29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)

Received on Tue Apr 15 2014 - 16:39:18 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 15 2014 - 16:48:06 CEST