- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- BOLD LETTERS FOR SHELL SCRIPT
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 02:40 AM
тАО11-29-2007 02:40 AM
PS3=:"
(bold)INTRODUCE EL NUMERO DE OPCION:"
Any example for make a shell script for present messages in bold for shell script my shell is
PS3="
INTRODUCE EL NUMERO DE OPCION:"
select clean_menu in "BAJAR BASE DE DATOS" "SUBIR BASE DE DATOS" "SALIR"
do
case $clean_menu in
"BAJAR BASE DE DATOS")
/oradb/ora_stop_db_DGCHM.sh;;
"SUBIR BASE DE DATOS")
/oradb/ora_start_db_DGCHM.sh;;
"SALIR") break ;;
esac
done
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 02:44 AM
тАО11-29-2007 02:44 AM
Solutionexport HB=$(tput dim 2>/dev/null) # dim text
export HV=$(tput smso 2>/dev/null) # 1/2 bright inverse
export IV=$(tput bold 2>/dev/null) # inverse
export UL=$(tput smul 2>/dev/null) # underline
export BL=$(tput blink 2>/dev/null) # blink
export EL=$(tput el 2>/dev/null) # clear to end of line
export ED=$(tput ed 2>/dev/null) # clear to end of display
export EE=$(tput sgr0 2>/dev/null) # end all enhancements
echo "normal $HV smso $HB dim $IV bold $UL smul $BL blink $EE normal"
Pete
Pete
- Tags:
- tput
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 02:49 AM
тАО11-29-2007 02:49 AM
Re: BOLD LETTERS FOR SHELL SCRIPT
NORM=$(tput sgr0)
echo "${BOLD}\c"
This should be bold.
echo "${NORM}\c"
This should be normal
Not all terminals support bold so you should probably use BOLD=(tput smso) nad NORM=(tput rmso)" instead but you could test it see if bold is available using the tput command. Man tput , terminfo for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 03:25 AM
тАО11-29-2007 03:25 AM
Re: BOLD LETTERS FOR SHELL SCRIPT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 03:31 AM
тАО11-29-2007 03:31 AM
Re: BOLD LETTERS FOR SHELL SCRIPT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 03:48 AM
тАО11-29-2007 03:48 AM
Re: BOLD LETTERS FOR SHELL SCRIPT
> Exist any option for brightnes
As Clay notes, everything depends upon your terminal type. If you look at the 'terminfo(4)' and 'tput(1)' manpages, you will find that "bold" is considered equivalant to "extra-bright".
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 03:55 AM
тАО11-29-2007 03:55 AM
Re: BOLD LETTERS FOR SHELL SCRIPT
My question is what is the option for the cursor display and not display
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 05:04 AM
тАО11-29-2007 05:04 AM
Re: BOLD LETTERS FOR SHELL SCRIPT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 02:32 PM
тАО11-29-2007 02:32 PM
Re: BOLD LETTERS FOR SHELL SCRIPT
eval $(ttytype -sa)
ttyenhance graphically shows the video features but is just using the Curses library to figure out what codes or escape sequences are needed for this terminal. Related to ttytype are the untic and tpu commands. untic shows (in terminfo talk) whether a feature exists and if so, shows to activate each feature.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2007 03:47 AM
тАО11-30-2007 03:47 AM
Re: BOLD LETTERS FOR SHELL SCRIPT
Looks like the attachment didn't
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2007 05:18 AM
тАО11-30-2007 05:18 AM
Re: BOLD LETTERS FOR SHELL SCRIPT
Here's the attachment.
Bill Hassell, sysadmin
- Tags:
- missing attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2007 06:56 AM
тАО11-30-2007 06:56 AM
Re: BOLD LETTERS FOR SHELL SCRIPT
#!/usr/bin/sh
# Bill Hassell Jun 2004
# Script to display terminal characteristics using Curses
# usage: ttyenhance [ any text will turn off ttytype polling ]
# Run with any text to bypass the ttytype polling and use
# the current value of $TERM, $LINES and $COLUMNS
set -u
PATH=/usr/bin
if [ $# -gt 0 ]
then
echo
echo "Current settings: TERM=$TERM, LINES=$LINES, COLUMNS=$COLUMNS"
else
eval $(ttytype -s)
echo
echo "ttytype says this terminal is a $TERM, LINES=$LINES, COLUMNS=$COLUMNS"
fi
# see if there is a terminal like this defined
tput sgr0 > /dev/null 2>&1
if [ $? -ne 0 ]
then
echo "$TERM is unknown to the terminfo database on this computer"
exit
fi
HB=$(tput dim) # dim text
HV=$(tput smso) # 1/2 bright inverse
IV=$(tput bold) # inverse
UL=$(tput smul) # underline
BL=$(tput blink) # blink
EE=$(tput sgr0) # end enhancements
echo
echo "Typical names:"
echo "\t$EE Normal $IV Inverse $EE $HB Dim $EE $BL Blink $EE $HV halfbrite $EE $UL underline $EE"
echo
echo "Curses capname (tput)"
echo "\t$EE SGR0 $IV BOLD $EE $HB DIM $EE $BL BLINK $EE $HV SMSO $EE $UL SMUL $EE"
echo
Bill Hassell, sysadmin