HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to decide TERM value
Operating System - HP-UX
1833046
Members
2522
Online
110049
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
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
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
08-12-2003 03:30 PM
08-12-2003 03:30 PM
How to decide TERM value
Hi,
I do not have clear idea in setting TERM value. We are using different software ( telnet, Crt, Tnvt, ..) to connect to many Unix m/c. If vi ( editing file ) is not OK, we change TERM=vt100 or vt220 or hp .., it works.
But how to decide on TERM value ?
does it depend on Unix m/c or software we are using to connect or depend on our PC
Thanks
R.Ezhil
I do not have clear idea in setting TERM value. We are using different software ( telnet, Crt, Tnvt, ..) to connect to many Unix m/c. If vi ( editing file ) is not OK, we change TERM=vt100 or vt220 or hp .., it works.
But how to decide on TERM value ?
does it depend on Unix m/c or software we are using to connect or depend on our PC
Thanks
R.Ezhil
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2003 05:04 PM
08-12-2003 05:04 PM
Re: How to decide TERM value
Hi Ezhil,
It sometimes depends on the unix box you use. Mostly with all Unix flavors vt100 works just fine. You don't have to set it every time but you can put the same in your .profile.
Regards,
Karthik S S
It sometimes depends on the unix box you use. Mostly with all Unix flavors vt100 works just fine. You don't have to set it every time but you can put the same in your .profile.
Regards,
Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2003 06:44 PM
08-12-2003 06:44 PM
Re: How to decide TERM value
It is best NEVER to hardcode the TERM value in /etc/profile and/or .profile since there may are dozens of different terminals (and emulators) that might be used. Hardcoding TERM means that some users will be OK and others will not. HP-UX has a program that identifies terminals (and emulators) automatically: ttytype
However, the standard /etc/profile will bypass this invaluable tool by testing whether TERM has been set before /etc/profile starts. This is a problem since telnet has a subcode that some opsystems will pass through to HP-UX and may not be useful for HP-UX. So, eliminate the test in /etc/profile to see if TERM has been set:
if [ "$TERM" = "" -o "$TERM" = "unknown" -o "$TERM" = "dialup" -o "$TERM" = "network" ]
then
eval `ttytype -s -a`
fi
and replace it with:
eval $(ttytype -s)
Now, every login will be correctly evaluated and programs like vi will work correctly.
Bill Hassell, sysadmin
However, the standard /etc/profile will bypass this invaluable tool by testing whether TERM has been set before /etc/profile starts. This is a problem since telnet has a subcode that some opsystems will pass through to HP-UX and may not be useful for HP-UX. So, eliminate the test in /etc/profile to see if TERM has been set:
if [ "$TERM" = "" -o "$TERM" = "unknown" -o "$TERM" = "dialup" -o "$TERM" = "network" ]
then
eval `ttytype -s -a`
fi
and replace it with:
eval $(ttytype -s)
Now, every login will be correctly evaluated and programs like vi will work correctly.
Bill Hassell, sysadmin
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 2025 Hewlett Packard Enterprise Development LP