View previous topic :: View next topic |
Author |
Message |
cmay4 Tux's lil' helper
Joined: 18 May 2002 Posts: 109
|
Posted: Sun Jul 21, 2002 10:58 pm Post subject: HOME and END keys |
|
|
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
and press HOME, then END, I get the following output:
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 |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Tue Jul 23, 2002 2:20 am Post subject: |
|
|
I did:
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 |
|
|
cmay4 Tux's lil' helper
Joined: 18 May 2002 Posts: 109
|
Posted: Tue Jul 23, 2002 3:03 am Post subject: THANK YOU!!! |
|
|
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 |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Tue Jul 23, 2002 4:00 am Post subject: |
|
|
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 |
|
|
cmay4 Tux's lil' helper
Joined: 18 May 2002 Posts: 109
|
Posted: Tue Jul 23, 2002 4:04 am Post subject: |
|
|
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 |
|
|
|