To setup your environment add the following to your .profile or script.ksh
export BELL=`tput bel 2>/dev/null`
export BOLD=`tput bold 2>/dev/null`
export BLINK=`tput blink 2>/dev/null`
export PLAIN=`tput sgr0 2>/dev/null`
export UNDERLINE_ON=`tput smul 2>/dev/null`
export UNDERLINE_OFF=`tput rmul 2>/dev/null`
export REV_VIDEO_ON=`tput smso 2>/dev/null`
export REV_VIDEO_OFF=`tput rmul 2>/dev/null`
An example of how to use them:
echo "${BELL}${BOLD}Hey, Wake Up!${PLAIN}"
echo "${UNDERLINE_ON}This text will be underlined if the terminal
supports it${PLAIN}"
echo "${BLINK}Looks like FM to me${PLAIN}"
The tput commands are all correct. The issue will always be, what does the
terminal support. That always differs from user-to-user depending what
telnet tool they use and what the configuration setup for that tool is.
Stick with ${BELL} and ${BOLD} and life will be easier.
"Spears, Brian"
<[EMAIL PROTECTED] To: Multiple recipients of list
ORACLE-L <[EMAIL PROTECTED]>
rands.com> cc:
Sent by: Subject: Unix tip for oracle
[EMAIL PROTECTED]
03/18/03 03:33 PM
Please respond to
ORACLE-L
Working on an wrapper for Oracle functionality.
Any of the Unix guru's know if you can
highlight or set text blinking in the korn shell
in unix?
Brian
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Spears, Brian
INET: [EMAIL PROTECTED]
Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author:
INET: [EMAIL PROTECTED]
Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).