Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOME and END keys
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
cmay4
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2002
Posts: 109

PostPosted: Sun Jul 21, 2002 10:58 pm    Post subject: HOME and END keys Reply with quote

I am having alot of trouble getting my HOME and END keys to work through and SSH connection (putty). The TERM string is "xterm". In nano, HOME works, but END prints a "w". Under emacs neither key works. In the bash shell, HOME works, but END prints a 7.

If I run
Code:
od -c

and press HOME, then END, I get the following output:
Code:
^[[1~^[[4~

I'm not sure if those values are correct or not. I've tried every setting in putty, and nothing works. Does anyone have any ideas? Thanks,

Chuck
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Jul 23, 2002 2:20 am    Post subject: Reply with quote

I did:
Code:

export TERM=linux

and put the following in my ~/.inputrc file:
Code:

"^[[1~": beginning-of-line
"^[[4~": end-of-line

Bash, nano, and emacs work fine then. Bash needs the inputrc, emacs the linux TERM setting. Also, I used the default putty settings (home-end key setting is "Standard")
Back to top
View user's profile Send private message
cmay4
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2002
Posts: 109

PostPosted: Tue Jul 23, 2002 3:03 am    Post subject: THANK YOU!!! Reply with quote

Thanks alot! I was really at a loss! Home and end are working perfectly now. I have one other minor question. In my .emacs, I have the following:
Code:
(global-set-key [home] 'beginning-of-line)
(global-set-key [end] 'end-of-line)
(global-set-key [C-home] 'beginning-of-buffer)
(global-set-key [C-end] 'end-of-buffer)

The home and end work fine, the control-home and control-end are not. Am I missing something obvious? Thanks again,

Chuck
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Jul 23, 2002 4:00 am    Post subject: Reply with quote

Putty doesn't seem to be sending C-home and C-end sequences at all. I am not sure what the issue is!
Back to top
View user's profile Send private message
cmay4
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2002
Posts: 109

PostPosted: Tue Jul 23, 2002 4:04 am    Post subject: Reply with quote

Naan Yaar wrote:
Putty doesn't seem to be sending C-home and C-end sequences at all. I am not sure what the issue is!

You're right...Normally it beeps at you if it doesn't understand. But in this case, it does nothing. It's always something ;-)

Chuck
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