- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing the tty settings for a different terminal...
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
08-26-2003 06:32 AM
08-26-2003 06:32 AM
Changing the tty settings for a different terminal.
I wish to change the tty settings for a different terminal then the one I am currently on. It goes something like
stty ixany /dev/ttyx5, however I need a bit of help with the exact syntax please!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 08:44 AM
08-26-2003 08:44 AM
Re: Changing the tty settings for a different terminal.
If you have a session that you wish to always set certain "stty" options, then add "stty" to the .profile file to set it before the application starts.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 09:47 AM
08-26-2003 09:47 AM
Re: Changing the tty settings for a different terminal.
"stty ixany /dev/ttyx5" to
"stty ixany < /dev/ttyx5"
and you are done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 12:43 PM
08-26-2003 12:43 PM
Re: Changing the tty settings for a different terminal.
by the way, to set the default control characters for all new connections, eg-
stty erase '^H' kill '^U' intr '^C' susp '^Z'
This gets around the problem of "@" being backspace on the Login: prompt.
see man stty
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 05:01 PM
08-26-2003 05:01 PM
Re: Changing the tty settings for a different terminal.
/sbin/stty erase "^H" kill "^U" intr "^C" eof "^D" -parity ixoff
/sbin/stty susp \^Z dsusp \^Y
Note that you can also apply these settings one time (on 11.0 with patches and higher only) by using the ttyconf device file:
/sbin/stty erase "^H" kill "^U" intr "^C" eof "^D" -parity ixoff < /dev/ttyconf
/sbin/stty susp \^Z dsusp \^Y < /dev/ttyconf
Thwe advantage in using ttyconf is that ot changes the tty prior to login so now, the backspace key works during login (the @ and # character defaults are removed).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 05:04 AM
08-27-2003 05:04 AM
Re: Changing the tty settings for a different terminal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 06:05 AM
08-27-2003 06:05 AM
Re: Changing the tty settings for a different terminal.
1) Using spaces to line up text and the font is variable width.
2) Using tabs to line up text and printer not set with proper spacing (ie terminal set at 8 characters and printer at 10).
3) A serial printer with incorrect handshaking. You can lose text due to buffer overruns. You shouldn't have to use "stty" to set this. If you are connected to a serial mux port, then /etc/gettydefs is where you would set flowcontrol. If you are using DTC's then you would use dtcmodify to set the flowcontrol.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 06:20 AM
08-27-2003 06:20 AM
Re: Changing the tty settings for a different terminal.
If your printer is using the full 8-bit character set then you have no choice but hardware handshake because the stop/start characters could then be part of a normal data stream.
The first thing that you need is to choose the device node for the port. Some will not use any hardware flow control and others will.
The stty settings of interest to you are
-clocal
ctsxon
rtsxoff
crts
ixon
-ixany
Man stty, termio, termiox, and modem for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 06:07 PM
08-27-2003 06:07 PM
Re: Changing the tty settings for a different terminal.
Bill Hassell, sysadmin