View previous topic :: View next topic |
Author |
Message |
cslyon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 21 Apr 2004 Posts: 68 Location: California
|
Posted: Wed Apr 21, 2004 11:52 pm Post subject: ssh client issues with uploading text |
|
|
I have installed Gentoo and so far so good. I have everything running that I need to have running but there is one problem that I noticed. I am trying to cut and paste some perl scripts that I have into the system using either PuttySSH or F-SecureSSH's client and the text is getting all messed up when I upload it. Is this a problem with a setting on the system. I have done this before with other linux system but have not seen this problem.
Any ideas? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Andersson Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/16562293853fedf8cdcf2e7.png)
Joined: 12 Jul 2003 Posts: 525 Location: Göteborg, Sweden
|
Posted: Thu Apr 22, 2004 12:56 am Post subject: |
|
|
What kind of problem? It sounds like you're pasting from windows, are you talking about the line feeds ("^M" on each line)? If so, there are several scripts to convert between unix and windows line feeds. In portage there is something called app-text/dos2unix.
If not, please describe the problem again ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cslyon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 21 Apr 2004 Posts: 68 Location: California
|
Posted: Thu Apr 22, 2004 4:56 am Post subject: |
|
|
You are correct, I am pasting from windows and the text turns out looking like this:
Source:
This is text on line one
This is text on line two (tab out)
This is text on line three (tab out)
This is text on line four (tab out)
Once Pasted into vi or nano
This is text on line one
----------This is text on line two (tab out)
-----------------This is text on line three (tab out)
------------------------This is text on line four (tab out)
The '-' are spaces!
So it seems to be just a problem in vi and not so much nano.
Sorry, should have put this in the orignal post.
Last edited by cslyon on Thu Apr 22, 2004 5:19 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Valhlalla Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1101350616419c2f350d953.jpg)
Joined: 22 Sep 2003 Posts: 161 Location: Sydney, Australia.
|
Posted: Thu Apr 22, 2004 5:01 am Post subject: |
|
|
Maby you need to switch paste on and off in Vi, cant remember the command off the top of my head sorry.
[edit] in vimrc put
Code: | set pastetoggle=<F8> |
or whatever key you want
see if that helps _________________ Pork Chop Sandwiches, Oh Sh*t! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cslyon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 21 Apr 2004 Posts: 68 Location: California
|
Posted: Thu Apr 22, 2004 5:26 am Post subject: |
|
|
OK,
I didn't have a .vimrc but I put just that line in and it is still doing it.
It is tabbing out everything that I paste into vim for some reason. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Valhlalla Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1101350616419c2f350d953.jpg)
Joined: 22 Sep 2003 Posts: 161 Location: Sydney, Australia.
|
Posted: Thu Apr 22, 2004 6:27 am Post subject: |
|
|
when you press the pasttoggle key did vim show "paste mode on" or whatever it is? _________________ Pork Chop Sandwiches, Oh Sh*t! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Andersson Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/16562293853fedf8cdcf2e7.png)
Joined: 12 Jul 2003 Posts: 525 Location: Göteborg, Sweden
|
Posted: Thu Apr 22, 2004 12:02 pm Post subject: |
|
|
Yes, vim does this for me as well. It's the autoindentation that freaks out. There are a few threads about this. I usually enter :set paste, then paste, then :set nopaste, but having a quick key for it is an excellent idea! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cslyon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 21 Apr 2004 Posts: 68 Location: California
|
Posted: Thu Apr 22, 2004 5:50 pm Post subject: |
|
|
That did the trick. I did try to get the .vimrc stuff to work but couldn't get it to work. I will give it a google to see what I can find. I am sure I am missing something from lack of sleep this past week.
Anyway, thank you for your help. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cslyon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 21 Apr 2004 Posts: 68 Location: California
|
Posted: Fri Apr 23, 2004 4:49 pm Post subject: |
|
|
Another question somewhat unrelated. when using the ssh clients, backspace and delete are the same. There are checkboxes within the client but they don't help. Is that a keyboard mapping or layout within gentoo? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Andersson Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/16562293853fedf8cdcf2e7.png)
Joined: 12 Jul 2003 Posts: 525 Location: Göteborg, Sweden
|
Posted: Fri Apr 23, 2004 4:53 pm Post subject: |
|
|
Change the keyboard map in /etc/rc.conf and see if it helps. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cslyon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 21 Apr 2004 Posts: 68 Location: California
|
Posted: Wed Apr 28, 2004 2:28 pm Post subject: |
|
|
I have tried a few different settings US, UK for the keyboard but what else should I try to fix the backspace issue on ssh? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|