View previous topic :: View next topic |
Author |
Message |
gnychis Veteran
Joined: 23 Mar 2005 Posts: 1004 Location: Pittsburgh, PA
|
Posted: Mon Sep 25, 2006 2:09 pm Post subject: when i ssh into machine, home key gives me ~ [SOLVED] |
|
|
Hey,
Whenever I ssh into a specific machine and try to use my 'Home' key, whenever I press it, it gives me a '~'
My 'End' key works just fine though.
How can I remap it to goto the beginning of a line? The shell is bash and it's linux on both ends.
- George _________________ <---- me and Richard Stallman
Last edited by gnychis on Thu Nov 02, 2006 5:05 am; edited 1 time in total |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Mon Sep 25, 2006 2:17 pm Post subject: |
|
|
I don't know for the home key, but you can do ctrl+a to go back to the beginning of a line _________________ The End of the Internet! |
|
Back to top |
|
|
gnychis Veteran
Joined: 23 Mar 2005 Posts: 1004 Location: Pittsburgh, PA
|
Posted: Mon Sep 25, 2006 5:01 pm Post subject: |
|
|
hmmmm... i typically do my work in a screen and that mucks with screen stuff _________________ <---- me and Richard Stallman |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Mon Sep 25, 2006 5:18 pm Post subject: |
|
|
gnychis wrote: | hmmmm... i typically do my work in a screen and that mucks with screen stuff |
hehe, then ctrl+a a will work:)
(note that this is différent from ctrl+a ctrl+a _________________ The End of the Internet! |
|
Back to top |
|
|
gnychis Veteran
Joined: 23 Mar 2005 Posts: 1004 Location: Pittsburgh, PA
|
Posted: Wed Sep 27, 2006 1:03 pm Post subject: |
|
|
any other solution? _________________ <---- me and Richard Stallman |
|
Back to top |
|
|
gnychis Veteran
Joined: 23 Mar 2005 Posts: 1004 Location: Pittsburgh, PA
|
Posted: Tue Oct 31, 2006 5:20 pm Post subject: |
|
|
bump
when i ssh into the machine, it still gives me a ~ at the shell when i hit home... something else to note though, home does take me to the beginning of the line when using VIM in that machine, just not in the shell _________________ <---- me and Richard Stallman |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Wed Nov 01, 2006 8:36 am Post subject: |
|
|
random idea:
try setting TERM=xterm _________________ The End of the Internet! |
|
Back to top |
|
|
gnychis Veteran
Joined: 23 Mar 2005 Posts: 1004 Location: Pittsburgh, PA
|
Posted: Wed Nov 01, 2006 9:00 am Post subject: |
|
|
yeah i tried that :\
no luck, thanks for the suggestion though _________________ <---- me and Richard Stallman |
|
Back to top |
|
|
Dlareh Advocate
Joined: 06 Aug 2005 Posts: 2102
|
Posted: Wed Nov 01, 2006 9:51 am Post subject: |
|
|
in .bashrc:
export INPUTRC="$HOME/.inputrc"
in .inputrc:
Code: | "\e[1~": beginning-of-line
"\e[4~": end-of-line |
start a new login shell to test (bash -l)
or you might need this .inputrc:
Code: | "\e[8~": end-of-line
"\e[7~": beginning-of-line |
or maybe just try this:
Code: | "<CTRL+V, press end>": end-of-line
"<CTRL+V, press home>": beginning-of-line |
Where instead of copy-pasting what I wrote inside the quotes, you press those key combinations to get their output.
More details at http://linuxart.com/log/archives/2005/10/13/super-useful-inputrc/ and by running "info readline" _________________ "Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet? |
|
Back to top |
|
|
gnychis Veteran
Joined: 23 Mar 2005 Posts: 1004 Location: Pittsburgh, PA
|
Posted: Thu Nov 02, 2006 5:05 am Post subject: |
|
|
Dlareh wrote: |
or maybe just try this:
Code: | "<CTRL+V, press end>": end-of-line
"<CTRL+V, press home>": beginning-of-line |
Where instead of copy-pasting what I wrote inside the quotes, you press those key combinations to get their output.
|
thank you sooooo much, you just saved me so much pain that I've been dealing with for about 4 months now. I will never take those keys for granted ever again _________________ <---- me and Richard Stallman |
|
Back to top |
|
|
|