control char in unix
Guy Harris
guy at auspex.auspex.com
Thu Sep 27 04:14:35 AEST 1990
>Maybe this'll help. It works on my system (sys v rel2 ver2), and it appears
>to work on my sun system (although it looks odd there - inverse characters).
Comes out in boldface on my machine. You probably set SunView up (or
XView, if you're running X) so that the tty subwindow (e.g.,
"shelltool") maps the boldface enhancement to inverse video (since you
say you have 4.x, whose tty subwindow code supports boldface, inverse
video, and underline).
>PS1='
You mean
PS1="
etc., because the Bourne shell doesn't expand variables in strings
enclosed in single quotes, just strings enclosed in double quotes.
>But, it looks like you will have to have a sys v env
>to support the tput command (We have sunos 4.0.3 and 4.1).
You do, but you can just embed the escape sequences, as you note later;
"tput bold" just pumps out "<ESC>[1m", for example.
More information about the Comp.unix.questions
mailing list