- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- setting tty default values
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
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
05-04-2002 09:21 AM
05-04-2002 09:21 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2002 11:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2002 11:06 AM
05-04-2002 11:06 AM
Re: setting tty default values
An example in my .profile on our test server
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2002 03:40 PM
05-04-2002 03:40 PM
Re: setting tty default values
the default "stty" values of serial ports are defined by the programmers of the serial device drivers!
Hence you cannot change them (except for reprogramming and installing them, then rebooting)...
Just my $0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2002 04:25 PM
05-04-2002 04:25 PM
Re: setting tty default values
So if you type an stty command at your shell prompt (with no device file) then it will affect your current tty device and the value(s) will stick because the tty port is currently opened by the shell. When the shell exits, the tty settings revert back to default.
If you wish to change a specific port, for instance, a serial barcode reader or similar, you need to keep the port open. This technique was real common for printers in the good old days:
nohup sleep 999999 < /dev/tty2p4 &
stty raw 9600 -parenb cs8 ixon -istrip clocal
The sleep command opens the tty port and then sleeps (for a long time), keeping the port open. So, as long as the sleep command is active, the settings will stay.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2002 04:18 AM
05-05-2002 04:18 AM
Re: setting tty default values
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x7989ee3e323bd5118fef0090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xf3bfe7726eccd5118ff10090279cd0f9,00.html