Operating System - HP-UX
1837774 Members
3617 Online
110119 Solutions
New Discussion

@ Character Being Treated as Carriage Return

 
SOLVED
Go to solution
Steve Lowe (IL)
Occasional Contributor

@ Character Being Treated as Carriage Return


Have a user who is using the vi editor. To enter a the '@' character, she must enter a '\' character. I thought we have cloned the accounts correctly.

What parameter do I need to look for?
What setup change is needed?

Steve in Illinois
3 REPLIES 3
Jonathan Fife
Honored Contributor

Re: @ Character Being Treated as Carriage Return

If you type 'stty -a' at the commandline, does it show @ for EOL, kill, intr, anything?

If it does, you probably need to redefine it (perhaps in the user's .profile):
stty eol (or whatever)

eg.

stty eol

Will change it from using @ as EOL to using ctrl+@

HTH
Decay is inherent in all compounded things. Strive on with diligence
Bill Hassell
Honored Contributor
Solution

Re: @ Character Being Treated as Carriage Return

Actually, the @ symbol is (by default) a line cancel, not a carriage return. So, when you type an email address, the @ simply cancels everything you just typed.

Now there are many solutions, the most painful is to ask users to type the following command:

stty erase "^H" kill "^U"

which will temporarily fis the problem. (note that the backspace key won't appear to work either until you type the above command.

Now to make this permanent, you need to add it to /etc/profile, but this only works when you login normally. An abnormal login would be Xwindows. You'll need to provide your HP-UX version and how users are logging in (ie, Xwindows like CDE, xterm, dtterm, etc) or telnet or ...


Bill Hassell, sysadmin
Steve Lowe (IL)
Occasional Contributor

Re: @ Character Being Treated as Carriage Return

Updated /etc/profile:

stty kill "^U"

for the standard user login