1827230 Members
2128 Online
109716 Solutions
New Discussion

Colors in HP-UX

 
Radhakrishnan Venkatara
Trusted Contributor

Colors in HP-UX

IS there any way to get colors on HP-UX (not thru X-windows) on telnet terminals Like Linux.I heard it is possible through some escape sequences

thanks in advance

radhakrishnan
Negative thinking is a highest form of Intelligence
5 REPLIES 5
Santosh Nair_1
Honored Contributor

Re: Colors in HP-UX

First your terminal program should be able to support color (most of the newer ones do). Next get the GNU ls command...this has a -color option which shows ls listing in colors depending on the type of file/directory.

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
John Bolene
Honored Contributor

Re: Colors in HP-UX

Linux telnet is coded to do that.

There might be a version on the hpux shares.

Try looking in
http://hpux.cs.utah.edu/
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
A. Clay Stephenson
Acclaimed Contributor

Re: Colors in HP-UX

The other side of this problem is that you must also have a terminfo and TERM type that
understands colors.
If it ain't broke, I can fix that.
someone_4
Honored Contributor

Re: Colors in HP-UX

Regular Refection for HP 6.0 has a color option where you can change the color of the font and the back ground.
Sridhar Bhaskarla
Honored Contributor

Re: Colors in HP-UX

1. You need to have your terminal to support colors.
2. You can use escape sequences to set the type. Like to set it bold, you can do like this

BOLD=`echo ^[[1m`
NOBOLD=`echo ^[[m`

echo "This is $BOLD bold $NOBOLD"

the word bold will be printed in "bold".


-Sri
You may be disappointed if you fail, but you are doomed if you don't try