Operating System - HP-UX
1833189 Members
3008 Online
110051 Solutions
New Discussion

@ key deletes line inside an xterm

 
SOLVED
Go to solution
Alex Green
Frequent Advisor

@ key deletes line inside an xterm

Hi,

I'm connecting to my 11i J6000 machine with X-Win32, using an Xterm. But I have a problem, every time I want to use the @ key, the whole line is deleted. This is a problem when I want to send an email from the cli ;).

Can anyone suggest a solution to this, I have tried changing the keyboard within X-Win... would changing the keyboard value in /etc/kbdlang help.. or do I need to change the system LANG?

Thanks in advance,
Alex
"The physicist's greatest tool is his wastebasket." - Albert Einstein.
3 REPLIES 3
harry d brown jr
Honored Contributor
Solution

Re: @ key deletes line inside an xterm

stty kill ctrl-v then ctrl-u

live free or die
harry
Live Free or Die
Tom Maloy
Respected Contributor

Re: @ key deletes line inside an xterm

Sounds more like an stty issue (man stty), possibly connected with your TERM type. The @ character is the usual "kill" character, telling the shell to drop/discard the entire line. To see if this is the problem, try this: disable KILL and ERASE processing, send your email, and re-enable the KILL and ERASE processing:

stty -icanon
mailx ....
stty icanon

HTH

Tom
Carpe diem!
Tom Danzig
Honored Contributor

Re: @ key deletes line inside an xterm

I usually use:

stty erase "^H" echoe

This allows the use of the standard backspace key.