LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-12-2006, 06:31 AM   #1
section31
LQ Newbie
 
Registered: Jul 2003
Location: San Antonio
Posts: 25

Rep: Reputation: 15
putty and ssh trouble


Everytime I copy and paste more than 1 line of text from my windows machine to my ssh server via putty, it doesn't seem to refresh the screen on putty properly.

It's extremely hard to explain but it makes it very difficult to go back and delete a few characters or see the beginning of the cmd I typed. I'm guessing this is not normal because i've tried using other servers using putty and I don't have this issue.

I have no idea if it's a putty issue or something to do with my ssh server, so I don't know where to start to fix this.
 
Old 08-12-2006, 07:02 AM   #2
section31
LQ Newbie
 
Registered: Jul 2003
Location: San Antonio
Posts: 25

Original Poster
Rep: Reputation: 15
I made a video of it.
http://section31.us/temp/putty_problems/
 
Old 08-13-2006, 08:15 AM   #3
section31
LQ Newbie
 
Registered: Jul 2003
Location: San Antonio
Posts: 25

Original Poster
Rep: Reputation: 15
Wow, I'm an idiot. I just disabled the colors on the prompt and now its working.

Anyone know why this happens when you add colors to your prompt?
 
Old 08-13-2006, 08:30 AM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
If you don't properly escape the color character sequences, bash thinks they are normal characters. All bash knows is the width of the terminal in characters and the amount of characters currently on the line. It gets confused when you have non-printing characters that mess up the line sequence.
 
Old 08-13-2006, 10:00 AM   #5
section31
LQ Newbie
 
Registered: Jul 2003
Location: San Antonio
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by osor
If you don't properly escape the color character sequences, bash thinks they are normal characters. All bash knows is the width of the terminal in characters and the amount of characters currently on the line. It gets confused when you have non-printing characters that mess up the line sequence.
That is a very distinct possibility. How do I escape the color character sequences?
 
Old 08-13-2006, 10:24 AM   #6
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Take a look at this: http://forums.macosxhints.com/archiv...p/t-17068.html
 
  


Reply

Tags
putty, ssh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH and Putty... Linux~Powered Linux - Security 4 06-15-2006 02:50 PM
Kde over Putty - SSH Black187 Linux - Networking 6 12-08-2005 03:28 PM
PuTTY/OS X SSH confusion stutterbug Linux - General 1 03-12-2005 04:38 PM
putty SSH connection deWin Linux - Newbie 3 03-26-2004 09:47 AM
SSH using putty rkemp Linux - Networking 3 03-06-2004 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration