Topic "The Terminal Output Bug"

Author Message
CLXBase
[View user's profile]

Joined: 2009-03-16
Posts: 1
Location: China
During using WinSCP, I found in terminal console, if a executed program last a quite long time, and generate a quite long output, the output texts may be in a bad order, which is, the last several lines of console output may be inserted in the middle of the output list. I know this might be trivial for WinSCP tool, yet it's critical for me, because we use this feature of WinSCP for compiling and debugging C code on Linux, mis-ordered shell output could generate big problem in debugging. Is it possible to enhance it? BTW, we found WinSCP seems to use clipboard to get shell output, this produces a problem, which is, when we are coding while WinSCP is executing a shell command, it may disturb the clipboad, often when we're coding, we copy a string but paste out a big block of console output. We're looking forward to a better way that WinSCP uses to get putty's console output.
WinSCP tool is an essential element for our development. We've modified its code and added a OLE module into it, and we've developed a C++Builder plugin connecting to WinSCP, so that C++Builder can interact with Linux command line, doing Linux development.
Thank you and the warmest regards.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
CLXBase wrote:
During using WinSCP, I found in terminal console, if a executed program last a quite long time, and generate a quite long output, the output texts may be in a bad order, which is, the last several lines of console output may be inserted in the middle of the output list. I know this might be trivial for WinSCP tool, yet it's critical for me, because we use this feature of WinSCP for compiling and debugging C code on Linux, mis-ordered shell output could generate big problem in debugging. Is it possible to enhance it?

WinSCP prints the lines in the order it receives them. The only exception may be, when some text is printed on standard output, while other on error output. As WinSCP works with whole lines only, it will postpone printing a text until it receives EOL on same output. May that explain what you are experiencing?

Quote:
BTW, we found WinSCP seems to use clipboard to get shell output, this produces a problem, which is, when we are coding while WinSCP is executing a shell command, it may disturb the clipboad, often when we're coding, we copy a string but paste out a big block of console output. We're looking forward to a better way that WinSCP uses to get putty's console output.

WinSCP may copy output of custom commands to clipboard only (not output of terminal). And only if you tell it to do so. See documentation. Let me know if I'm wrong.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License