Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"w" key does not work on pts/?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
r.j.hall
n00b
n00b


Joined: 06 Feb 2003
Posts: 53
Location: London

PostPosted: Wed Aug 06, 2003 5:21 pm    Post subject: "w" key does not work on pts/? Reply with quote

I have a very obscure problem with the w key on my new server.

If I am logged directly into the system console there is no problem. If I ssh into the machine the w key just causes the machine I am logged in from to beep every time I press it. according to dump keys "keycode 17 = w", which is correct.


if I start an xterm from the ssh session the same happens.

I have tried it from 3 different machines and exactly the same happens from each of them.

If I run strace on the client ssh process I get this output for pressing q:
Code:

)        = 1 (in [4])
read(4, "q", 16384)                     = 1
select(7, [3 4], [3], NULL, NULL)       = 1 (out [3])
write(3, "E\315\32UK:u\315\256e\325\221\330\322\327\34R\264\300i"..., 48) = 48
select(7, [3 4], [], NULL, NULL)        = 1 (in [3])
read(3, "\227\210\341u~\226\272l\37\244o_\236\273u\204TP\362\253"..., 8192) = 48
select(7, [3 4], [5], NULL, NULL)       = 1 (out [5])
write(5, "q", 1)                        = 1
select(7, [3 4], [], NULL, NULL


if I then press w I get this:

Code:

)        = 1 (in [4])
read(4, "w", 16384)                     = 1
select(7, [3 4], [3], NULL, NULL)       = 1 (out [3])
write(3, "\35\34t\212J\300\223s\0\3008\234\321\351h\16F}\223r\225"..., 48) = 48
select(7, [3 4], [], NULL, NULL)        = 1 (in [3])
read(3, "\272B\346\250\t}\232UMmL\375\354\306\316\316Q+K.\353$\4"..., 8192) = 48
select(7, [3 4], [5], NULL, NULL)       = 1 (out [5])
write(5, "\7", 1)                       = 1
select(7, [3 4], [], NULL, NULL


Capital W works fine, as do all the other keys.

Does anyone have any suggestions because I have no idea where to start on this one.

:?
_________________
--- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
You've read it.
You can't unread it!
--- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Sun Aug 10, 2003 12:58 pm    Post subject: Reply with quote

I found your "w"s!!!

Look here!
https://forums.gentoo.org/viewtopic.php?t=73863&
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
grant.mcdorman
Apprentice
Apprentice


Joined: 29 Jan 2003
Posts: 295
Location: Toronto, ON, Canada

PostPosted: Sun Aug 10, 2003 4:17 pm    Post subject: Re: "w" key does not work on pts/? Reply with quote

r.j.hall wrote:
I have a very obscure problem with the w key on my new server.

If I am logged directly into the system console there is no problem. If I ssh into the machine the w key just causes the machine I am logged in from to beep every time I press it.
:?


Does this just happen in bash, or in every application?

Check your stty settings; I have
Code:
stty -a
speed 38400 baud; rows 42; columns 127; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -ixon -ixoff -iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

If 'erase', 'kill', or 'werase' is set to 'w', you'd get the symptoms you describe. (They should be control characters).

Another possibility is that bash is in vi mode [set -o vi], although that's kinda hard to miss, since many other keystrokes would behave, um, oddly (that is, if you don't realize it's in vi mode).

There may also be ssh settings; check the ssh and ssh_conf man pages.

This may be happening just with ssh, incidentally, because the way the tty defaults are set changes (it tries to copy settings from the remote host). Also check your /etc/profile, ~/.bash_login, and ~/.bashrc for stty commands.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum