GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Colors within terminal app on HP-UX 11i
Operating System - HP-UX
1847251
Members
3175
Online
110263
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-28-2003 12:58 AM
11-28-2003 12:58 AM
Hi,
I'm using putty to connect to an HP-UX 11i server and then start vim with syntax highlighting. I just get different sort of grey and underlined characters. So, how do define a TERMINFO/TERM to get real colors displayed?
I've already tried a bit with different tic files and tic_colr etc. ...
Bye,
Udo.
I'm using putty to connect to an HP-UX 11i server and then start vim with syntax highlighting. I just get different sort of grey and underlined characters. So, how do define a TERMINFO/TERM to get real colors displayed?
I've already tried a bit with different tic files and tic_colr etc. ...
Bye,
Udo.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 01:01 AM
11-28-2003 01:01 AM
Re: Colors within terminal app on HP-UX 11i
Normally, you play with the terminfo values but if you have done that and are convinced that it's ok, you could try and make sure that "stty -a" shows you "cs8" and if not set it. I seem to have some long lost memory about colour and setting this but could be way off base.
Never preceed any demonstration with anything more predictive than "watch this"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 07:35 AM
11-28-2003 07:35 AM
Solution
You'll need to identify exactly what terminal putty is trying to emulate and see whether the ttytype -s command idetifies it correctly. This is a combination of terminal emulation (can the putty program display any colors at all?), and if so, can putty be configured to handle different terminfo parameters with different colors (ie, bold=blue, dim=yellow, etc), and if so, change the map in putty. vim (as far as I know) is using the Curses library (and hopefully does not have hardcoded escape sequences internally). For instance, try this little snippet to show the different character enhancements:
eval $(ttytype -s)
echo "ttytype says this is a $TERM"
HB=$(/usr/bin/tput dim) # dim text
HV=$(/usr/bin/tput smso) # 1/2 bright inverse
IV=$(/usr/bin/tput bold) # inverse
UL=$(/usr/bin/tput smul) # underline
BL=$(/usr/bin/tput blink) # blink
echo "Normal $IV Inverse $HB Dim $BL Blink $HV halfbrite $UL underline"
The problem with terminals (and emulators like putty) is that there are so many of them. The good news is that hundreds (about 1800 different models) are included in /usr/lib/terminfo/* so dig out the putty manual to see how video enhancements and colors are handled. The terminfo man page gives some good info about colors too. Look for: Color Manipulation in the man page.
Bill Hassell, sysadmin
eval $(ttytype -s)
echo "ttytype says this is a $TERM"
HB=$(/usr/bin/tput dim) # dim text
HV=$(/usr/bin/tput smso) # 1/2 bright inverse
IV=$(/usr/bin/tput bold) # inverse
UL=$(/usr/bin/tput smul) # underline
BL=$(/usr/bin/tput blink) # blink
echo "Normal $IV Inverse $HB Dim $BL Blink $HV halfbrite $UL underline"
The problem with terminals (and emulators like putty) is that there are so many of them. The good news is that hundreds (about 1800 different models) are included in /usr/lib/terminfo/* so dig out the putty manual to see how video enhancements and colors are handled. The terminfo man page gives some good info about colors too. Look for: Color Manipulation in the man page.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 07:37 PM
11-30-2003 07:37 PM
Re: Colors within terminal app on HP-UX 11i
Thanx for the help. It improved my understanding of term/terminfo/termlib etc.
putty is capabale of displaying colors - tested with a script changing colors by means of escape sequences. Finally, I was vim's "problem". So, I had to configure vim to use escape sequences.
Bye,
Udo.
putty is capabale of displaying colors - tested with a script changing colors by means of escape sequences. Finally, I was vim's "problem". So, I had to configure vim to use escape sequences.
Bye,
Udo.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP