Operating System - HP-UX
1837967 Members
2811 Online
110124 Solutions
New Discussion

Re: Unable to display the @ character

 
depriester frank
Occasional Contributor

Unable to display the @ character

Hi,

on some of our HP servers, the @ character cannot be displayed neither from the command line nor under vi for all UNIX users.

Instead, it behaves as if I had keyboarded a new line character : the prompt is displayed again, and the beginning of the command typed (before pressing @) is not executed.

Have I got a problem with my stty definitions ?

How can I retrieve my "at" character ?

Thanks in advance, BR
fdepri
7 REPLIES 7
Rodney Hills
Honored Contributor

Re: Unable to display the @ character

some definitions of stty have "backspace" set to "@". Just do a- stty erase ^h
to fix

HTH

-- Rod Hills
There be dragons...
A. Clay Stephenson
Acclaimed Contributor

Re: Unable to display the @ character

I suspect that you have accidently set eol to '@' rather than '^@' (Ctrl-@). The solution is simple:

stty eol '^@'
If it ain't broke, I can fix that.
Sridhar Bhaskarla
Honored Contributor

Re: Unable to display the @ character

Hi,

It is set to either eol or by default "kill" so you would see it like new line character though you won't get a prompt unless you type enter.

Run the following command and see how your stty settings appear.

stty -a

If you see @ associated with kill, do

stty kill ^U

or if it is eol then

stty eol ^@

Where (^U is cntrolV-ControlU)


Make sure you profile includes the following line

stty erase "^H" kill "^U" intr "^C" eof "^D"

and ensure your terminal is configured to pass those characters accordingly.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Kiyoshi Miyake
Frequent Advisor

Re: Unable to display the @ character

hi,

are you set correct $TERM ?

"ttytype" command in /etc/profile sets $TERM.

see also man page of ttytype, tset, terminfo, tic and untic.

thanks.
Robert A. Pierce
Frequent Advisor

Re: Unable to display the @ character


What if you type \@?

e.g., typing

ls -l | elm -s"test" my.addr\@example.org

should display as

ls -l | elm -s"test" my.addr@example.org

depriester frank
Occasional Contributor

Re: Unable to display the @ character

Thank you all.

By forcing

stty eol ^@
stty erase "^H" kill "^U" intr "^C" eof "^D"

in my .profile, no more problem.
fdepri
Jan Sladky
Trusted Contributor

Re: Unable to display the @ character

hi,
check output form stty -a
and see in which signals is @ associated
and than rapier it according to "working unix".
I guess that problem is in wrong setting of following

eol = @; eol2 = @;

change it on

eol = ^@; eol2 = ^@;

by

stty eol ^@

br Jan

GSM, Intelligent Networks, UNIX