1838571 Members
3281 Online
110128 Solutions
New Discussion

TEXT

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

TEXT

Can someone tell me the command to have underlined text on my vt100 display?
UNIX IS GOOD
5 REPLIES 5
Robin Wakefield
Honored Contributor

Re: TEXT

Hi Robert,

Try something like:

echo '\033[4mhello\033[0m'

Rgds, Robin.
harry d brown jr
Honored Contributor
Solution

Re: TEXT

[root]pbctst: SUL=`tput smul`
[root]pbctst: EOL=`tput rmul`
[root]pbctst: echo "This is ${SUL}quite${EOL} funny"
This is quite funny
[root]pbctst:


live free or die
harry
Live Free or Die
Nobody's Hero
Valued Contributor

Re: TEXT

Actually, I know that it is a command. I can't remember what it is. I found it one day when I was looking at terminfo. I know it is a four letter command like (iecb or ipcs or something) and accepts parms and one parm is to underline text on your screen.
UNIX IS GOOD
Nobody's Hero
Valued Contributor

Re: TEXT

Thanks Harry, boy I had a brain cramp. I just could not remember 'tput'

Thanks,
B.
UNIX IS GOOD
harry d brown jr
Honored Contributor

Re: TEXT

Robert,

to find those characters and others like "bold" (smso and rmso), use:

untic vt100

SBD=`tput smso`
EBD=`tput rmso'
echo "This is ${SBD}quite${EBD} funny"

The names are cryptic! Having one time built a terminfo entry for wyse50's emulating ViewPoint50's isn't fun.

live free or die
harry
Live Free or Die