[Solved] Terminal color code help

Technical issues/questions of an intermediate or advanced nature.
Post Reply
User avatar
Ed_P
Moderator
Moderator
Posts: 5632
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 & 5.0rc2 Cinnamon 64 ISOs
Location: Western NY, USA

[Solved] Terminal color code help

Post#1 by Ed_P » 03 Aug 2020, 07:10

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
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2581
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Terminal color code help

Post#2 by ncmprhnsbl » 03 Aug 2020, 11:42

check what the terminal font is set to... ie. is it already bold?

User avatar
Ed_P
Moderator
Moderator
Posts: 5632
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 & 5.0rc2 Cinnamon 64 ISOs
Location: Western NY, USA

Terminal color code help

Post#3 by Ed_P » 03 Aug 2020, 16:39

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:
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2581
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Terminal color code help

Post#4 by ncmprhnsbl » 04 Aug 2020, 09:42

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..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Moderator
Moderator
Posts: 5632
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 & 5.0rc2 Cinnamon 64 ISOs
Location: Western NY, USA

Terminal color code help

Post#5 by Ed_P » 04 Aug 2020, 17:35

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?
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2581
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Terminal color code help

Post#6 by ncmprhnsbl » 05 Aug 2020, 13:18

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 :\

User avatar
Ed_P
Moderator
Moderator
Posts: 5632
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 & 5.0rc2 Cinnamon 64 ISOs
Location: Western NY, USA

Terminal color code help

Post#7 by Ed_P » 05 Aug 2020, 17:30

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. :(
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2581
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Terminal color code help

Post#8 by ncmprhnsbl » 06 Aug 2020, 12:57

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'
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Moderator
Moderator
Posts: 5632
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 & 5.0rc2 Cinnamon 64 ISOs
Location: Western NY, USA

Terminal color code help

Post#9 by Ed_P » 06 Aug 2020, 22:21

What I see when in openbox DE.

Image
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2581
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Terminal color code help

Post#10 by ncmprhnsbl » 06 Aug 2020, 22:34

try rightclicking a little lower, in the black area ;)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Moderator
Moderator
Posts: 5632
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 & 5.0rc2 Cinnamon 64 ISOs
Location: Western NY, USA

Terminal color code help

Post#11 by Ed_P » 07 Aug 2020, 03:52

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:
Ed

Post Reply