Page 1 of 1

[Solved] Terminal color code help

Posted: 03 Aug 2020, 07:10
by Ed_P
Why do the Bold and non-Bold lines that this script produces look the same??

colortest.sh

Code: Select all

#!/bin/sh

#set -x;
echo "Enter a number"              $(tput setaf $1) " Test $1"     $(tput sgr0)
echo "              " $(tput bold) $(tput setaf $1) "Test $1 Bold" $(tput sgr0)
colortest.sh 2
colortest.sh 4

etc

Terminal color code help

Posted: 03 Aug 2020, 11:42
by ncmprhnsbl
check what the terminal font is set to... ie. is it already bold?

Terminal color code help

Posted: 03 Aug 2020, 16:39
by Ed_P
Hello ncmp. :) How do I check the terminal's font? :unknown:

But, today, the two lines are as they should be. :o :%) Oh, maybe run on different systems. :hmmm:

Terminal color code help

Posted: 04 Aug 2020, 09:42
by ncmprhnsbl
Ed_P wrote:
03 Aug 2020, 16:39
How do I check the terminal's font?
it'll be in the preferences for the terminal somewhere..

Terminal color code help

Posted: 04 Aug 2020, 17:35
by Ed_P
In 4.0 Cinnamon I could find it, in 5.0rc1 Openbox(?) I could not. Or maybe it was 5.0rc1 Cinnamon. Nope it was Openbox.

Good to see you active ncmp. :) Where is jssouza, I haven't seen him in a while?

Terminal color code help

Posted: 05 Aug 2020, 13:18
by ncmprhnsbl
Ed_P wrote:
04 Aug 2020, 17:35
in 5.0rc1 Openbox(?) I could not.
in sakura(the terminal in openbox) rightclick menu>options>more>checkbox:enable bold font
and jssouza, hopefully he's just busy :\

Terminal color code help

Posted: 05 Aug 2020, 17:30
by Ed_P
ncmprhnsbl wrote:
05 Aug 2020, 13:18
in sakura(the terminal in openbox) rightclick menu>options>more>checkbox:enable bold font
That's not what I see when I rightclick on sakura menu.

As for jssouza hopefully that is the case. :) Not sure what part of the globe he lives in but If he was here his wifi source could be closed due to the pandemic. :(

Terminal color code help

Posted: 06 Aug 2020, 12:57
by ncmprhnsbl
Ed_P wrote:
05 Aug 2020, 17:30
That's not what I see when I rightclick on sakura menu.
um.. rightclick on sakura(terminal area) and a menu appears: then navigate: options>more>checkbox: enable bold font
or
close all sakura terminals, open ~/.config/sakura/sakura.conf , change line: 'allow_bold=No' to 'allow_bold=Yes'

Terminal color code help

Posted: 06 Aug 2020, 22:21
by Ed_P
What I see when in openbox DE.

Image

Terminal color code help

Posted: 06 Aug 2020, 22:34
by ncmprhnsbl
try rightclicking a little lower, in the black area ;)

Terminal color code help

Posted: 07 Aug 2020, 03:52
by Ed_P
ncmprhnsbl wrote:
06 Aug 2020, 22:34
try rightclicking a little lower, in the black area ;)
:o That works. :happy62: And the bold text option is not checked.

Thank you ncmp :beer: