Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
when i ssh into machine, home key gives me ~ [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Mon Sep 25, 2006 2:09 pm    Post subject: when i ssh into machine, home key gives me ~ [SOLVED] Reply with quote

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
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Mon Sep 25, 2006 2:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Mon Sep 25, 2006 5:01 pm    Post subject: Reply with quote

hmmmm... i typically do my work in a screen and that mucks with screen stuff :(
_________________
<---- me and Richard Stallman :)
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Mon Sep 25, 2006 5:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Wed Sep 27, 2006 1:03 pm    Post subject: Reply with quote

any other solution?
_________________
<---- me and Richard Stallman :)
Back to top
View user's profile Send private message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Tue Oct 31, 2006 5:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Wed Nov 01, 2006 8:36 am    Post subject: Reply with quote

random idea:

try setting TERM=xterm :?:
_________________
The End of the Internet!
Back to top
View user's profile Send private message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Wed Nov 01, 2006 9:00 am    Post subject: Reply with quote

yeah i tried that :\

no luck, thanks for the suggestion though :)
_________________
<---- me and Richard Stallman :)
Back to top
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Wed Nov 01, 2006 9:51 am    Post subject: Reply with quote

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
View user's profile Send private message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Thu Nov 02, 2006 5:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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