- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: stty issue
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
Discussions
Discussions
Forums
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
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
тАО02-24-2005 01:17 PM
тАО02-24-2005 01:17 PM
We have a problem with a certain user on one of our systems with when they type the "@" symbol, it deletes all of the line that they were typing on the command line.
I checked stty -a as this user and see that the following as the probably cause:
kill=@.
This is obviously undesirable and i'm not sure how I go about removing this after looking through the Man Pages. Can anyone assist?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2005 01:27 PM
тАО02-24-2005 01:27 PM
Re: stty issue
MPLES
The command:
stty kill '^X' intr '^C'
sets the delete-line character to ^X (Ctrl-X) and the interrupt
character to ^C. This command is usually found in the .login or
.profile file so that ^X and ^C need not be set by the user at each
login session.
The command:
stty kill '^X' intr '^C' werase '^W'
sets the default values for the delete-line character to ^X (Ctrl-X),
the interrupt character to ^C, and the word erase character to ^W.
Any terminal port opened after this command is issued will see these
new default values for the kill, intr, and werase control characters.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2005 07:19 PM
тАО02-24-2005 07:19 PM
Re: stty issue
you can set the stty behaviour at login by editing the /etc/profile file and adding
lawrenzo information.
Or customise each user in their startup scripts (depending on their shell
.profile ,.cshrc...)
Just be aware that not all users may use the same terminal type.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2005 07:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2005 07:42 PM
тАО02-24-2005 07:42 PM
Re: stty issue
$ stty kill ^U
Should solve your problem. Remeber while ^U is combination of CNTRL key and U key.
Also if you want to set it up for all users better to put it in /etc/profile otherwise you can use individuals .profile file.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2005 08:22 AM
тАО02-25-2005 08:22 AM
Re: stty issue
Your ideas of putting this fix into the /etc/profile fixed my issues.
Thanks,
-Ken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2005 08:40 AM
тАО02-25-2005 08:40 AM
Re: stty issue
Define the delete line character to Ctrl-X by doing the following:
# stty kill ^X
Also, if that doesn't work, try:
# stty sane
The second one should definitely do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2005 08:47 AM
тАО02-25-2005 08:47 AM
Re: stty issue
You should define the delete-line character for all of your users, individually, or better yet, put it in the startup files (edit the profile or login, depending on the shells your users use). The second is a better way to start, as new users added to the system will not have to have their user startup files changed, however, if they define it in their own startup file it will override the system startup file.
That said, if you have problems after setting this in the system startup file then you will know something got changed with the users startup file.
Hope this helps. Good luck, ther's no telling what those crazy users will do!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2005 07:07 PM
тАО08-14-2005 07:07 PM
Re: stty issue
With the backspace key, I've noticed that a lot depends on which shell you are running AND the program you are using (eg telnet vs putty).
ie backspace key for a user works from putty, but not from telnet?
Also, the shell makes a difference. For example, the root user runs the posix shell, but ordinary users use the korn shell. it seems the posix shell handles backspaces better than the korn shell does. Why is this? Is there a way to fix the korn shell so that it maps the backspace key properly (so I don't have to change the default shell for all our users to posix shell)?
for example, if I use the korn shell and telnet from windows, the backspace key doesn't work. But if I change the shell to posix, then the backspace key works.
If I use putty for ssh, then the backspace key works with either shell though?
Is there a way to get the backspace key working no matter what terminal program you are using (telnet vs putty vs rlogin)?
Ta
- Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 01:12 AM
тАО08-15-2005 01:12 AM
Re: stty issue
ls /usr/lib/terminfo/*
It is quite common for some emulators to default to sending the DEL character when you press the backspace key. Putty, like Hypertermianl, Reflection for HP, QCterm and dozens of termnnal emulators, define what to do with special keys. While you might assume that the backspace key on your terminal or your PC will send the ASCII code 0x08, many emulators default to the Tru64/DEC standard of DEL which is code 0x7f and will sometimes be displayed as ^? via the shell.
While many Unix users assume that all terminals are VT100, this is far from the case and a PC is not a terminal!! A PC can be used as a terminal by running a special program which may or may not be a true vt100 emulation. To understand what a 'real' vt100 looks like, visit: http://vt100.net/
SO take a look at your ssh and Putty client setup to see how to configure special keys like backspace. Once HP-UX sees the backspace character, then the stty setting will work.
Bill Hassell, sysadmin