HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Term setting
Operating System - HP-UX
1833195
Members
3066
Online
110051
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
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
07-04-2004 08:38 PM
07-04-2004 08:38 PM
Hi,
stty & tset are the 2 methods to set Termainl characteristics (TERM).
May I know what is the difference between them and when to apply which method?
regards.
stty & tset are the 2 methods to set Termainl characteristics (TERM).
May I know what is the difference between them and when to apply which method?
regards.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2004 08:40 PM
07-04-2004 08:40 PM
Re: Term setting
"stty" sets individual characteristics as per your instructions. "tset" sets all the characteristics of a terminal according to what is probably right for your terminal.
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
07-04-2004 08:43 PM
07-04-2004 08:43 PM
Re: Term setting
Hi,
Thanks Grant.
Could you pls provide me some cases when to apply these 2 methods? Because I'm still not very clear about it.
regards.
Thanks Grant.
Could you pls provide me some cases when to apply these 2 methods? Because I'm still not very clear about it.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2004 08:53 PM
07-04-2004 08:53 PM
Solution
Generally speaking, you use "tset" in the users ".profile" or equivalent so that all the settings get set up when the user logs in. However, if you want to change something specific at some time, for example, you have a user who runs an application that uses CNTL C for a command, you might add a "stty intr ^T" to change the interrupt character for that user.
Alternatively, maybe you run some application that crashes, leaving you in raw mode. Everytime you press ENTER, the cursor moves down but not to the left and you find ^J is the only way to press a real ENTER. You might just run a brief "stty onlcr" to solve that one. You probably would also have to run "stty -noraw", "stty echoe" and "stty echo" in the above example but we'll not worry too much about that (particularly as "stty sane" would have done all of them for you).
So basically, "tset" is like running an application to set up your terminal and "stty" is for a more fine grained changes.
Alternatively, maybe you run some application that crashes, leaving you in raw mode. Everytime you press ENTER, the cursor moves down but not to the left and you find ^J is the only way to press a real ENTER. You might just run a brief "stty onlcr" to solve that one. You probably would also have to run "stty -noraw", "stty echoe" and "stty echo" in the above example but we'll not worry too much about that (particularly as "stty sane" would have done all of them for you).
So basically, "tset" is like running an application to set up your terminal and "stty" is for a more fine grained changes.
Never preceed any demonstration with anything more predictive than "watch this"
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