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
Forums
Discussions
Discussions
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
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-26-2003 10:44 PM
11-26-2003 10:44 PM
I am busy doing some menus in VI and want them to look nicer and more user friendly. HP-UX 11 using VT220 emulations.
I've got the \t (tab) and \n (newline) as well as the $hi $lo down , but need to know if there's any way to make bold , underline or even italic characters.
Thank you
Regards
Rudi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 10:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 11:02 PM
11-26-2003 11:02 PM
Re: VI Query
Are your menus driven by shell scripts?
If so, take a look at tput (man tput).
eg
tput bold;echo THIS IS BOLD;tput sgr0
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2003 02:30 AM
11-27-2003 02:30 AM
Re: VI Query
untic vt220
and you'll see what Curses will do with each of the characteristics (like bold, clear, smso, etc). To decode the somewhat cryptic feature list, use man terminfo. Here is a general list:
export HB=$(/usr/bin/tput dim) # dim text
export HV=$(/usr/bin/tput smso) # 1/2 bright inverse
export IV=$(/usr/bin/tput bold) # inverse
export UL=$(/usr/bin/tput smul) # underline
export BL=$(/usr/bin/tput blink) # blink
export EE=$(/usr/bin/tput sgr0) # end all enhancements
# Some terminals do not have 1/2 bright inverse so let's test this
# capability and substitute underline rather than $HV
if tput smso > /dev/null
then
HVUL=$HV
else
HVUL=$UL
fi
Another idea:
alias c="tput khome;tput clear" # quick clear all of memory
You can reach virtually all features available for the VT220 using tput including randomly moving the cursor around the screen using tput, but the even better news is that it will work with other terminals such as hpterm and xterm. tput is terminal-neutral by using the Curses library, so as long as the feature exists in the terminal *and* the terminfo database (see /usr/lib/terminfo/*) has an entry for that terminal, you'll be able to do some very fancy menu work.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2003 09:09 PM
11-27-2003 09:09 PM
Re: VI Query
tput blink # Turns on blink
tput bold # Turns on bold
Try a man on tput for more information :-
man tput
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2003 09:23 PM
11-27-2003 09:23 PM
Re: VI Query
Cheers