- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- At cmd prompt, typing an at sign erases to beginni...
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
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
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
03-05-2012 03:36 PM
03-05-2012 03:36 PM
I have a server running 11i.
One logon (root) works fine..I can type username@location with no problem.
Using a different login, if I type username<at-sign>, it INSTANTLY erases what I have typed as soon as I type the <at-sign>.
I have looked at /etc/password and .profile and both have a modify dates of years ago.
I replaced the contents of .profile with a single echo command. The echo executes but the bad behavior still exists.
Any ideas on what may be causing this behavior?
Thanks, Lee
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2012 11:38 PM
03-05-2012 11:38 PM
SolutionThis is a very old behavior, designed back when terminals had a printer instead of a display. A printer terminal cannot (efficiently) erase any previous output, so it needs to have another way of allowing the users to correct their typos. The characters "#" and "@" were the default characters for this purpose: on HP-UX, they are still the kernel default values if terminal type cannot be identified at login time.
Run "stty -a". You will most likely see that "@" is currently set as the KILL character: when that character is input, the entire line is erased, just as you've experienced.
You may notice that other control characters (mainly INTR and ERASE) are not what you would normally expect, too.
You might want to check the value of the environment variable $TERM, too: often when stty settings are left to kernel defaults, you'll find that $TERM is set to "dumb" too. You'll want to set it to some value that is a better match to the capabilities of your terminal/emulator.
My own HP-UX .profile usually has this command as a line of defense against possibly badly-maintained global defaults. It will set the terminal control characters to known good values:
stty intr ^C kill ^U erase ^? susp ^Z
(Note: depending on how your terminals/terminal emulators are configured, you might want to set the erase character to ^H instead.)
- Tags:
- stty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2012 10:25 AM
03-06-2012 10:25 AM
Re: At cmd prompt, typing an at sign erases to beginning of line!
Matti,
Thank You, Thank You, Thank You! That was the problem; although $TERM was set to vt100.
The .profile in root DID have the stty command but the stty was not in the other user .profile.
Thanks again, Lee