Operating System - HP-UX
1845501 Members
3350 Online
110244 Solutions
New Discussion

Any way for the shell to set the text to bold faced type?

 
SOLVED
Go to solution
Boyd Kodama
Frequent Advisor

Any way for the shell to set the text to bold faced type?

HP-UX 10.20

Is there any way, whether in csh, sh or ksh, to
set the text of a terminal window to bold-faced type?

We have a script which echoes/prints out some
text to stdout. We would be interested in
making a particular line of that text stand out
in bold-faced type.

Any ideas?

thanks,

Boyd
Without Mondays, there weren't be any Fridays
2 REPLIES 2
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Any way for the shell to set the text to bold faced type?

Hi Boyd,

Try this.

echo `echo ^[[1m` test `echo ^[[m`

This should print test in bold.

^[ is CTRL-V CTRL-[

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor

Re: Any way for the shell to set the text to bold faced type?

If your particular terminfo entry supports for your TERM setting, then yes:

tput bold (sets bold)
and
tput rmso (removes 'standout' - back to normal)



If it ain't broke, I can fix that.