The Terminal Output Bug

Advertisement

CLXBase
Joined:
Posts:
1
Location:
China

The Terminal Output Bug

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: The Terminal Output Bug

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?

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.

Reply with quote

Advertisement

You can post new topics in this forum