Using Google Chrome?

Download my
free Chrome Extension, Power Notes Searcher, to make searching for and evaluating SAP notes, much easier.

Monday, May 21, 2012

Script Korn Shell to use Bold Output

Print Friendly and PDF
Here's how you can use a normal Korn shell script to put out bold text on the screen providing the emulator you are using supports it:

$ bold=`tput smso`
$ regular=`tput rmso`

$ echo "${bold}Please type in your name: \c"
$ echo "${regular}OK"

See the man page for tput for a wild array of other capabilities.
It's possible you can even use tput to draw in different parts of the screen.
This could be used to create a drop-down box or a menu select box in KSH.
It can be done!  Honest!

No comments: