Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » capturing stdout/err/in of subprocess
Re: capturing stdout/err/in of subprocess [message #1700 is a reply to message #1698] Tue, 14 March 2006 09:22 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Quote:


I'm lost. Don't you just "feed the input" when the user presses a key or sends a file - it's up to the user to know when the slave process will accept input ???

(except when the user explicitly enables XON/XOFF (software flow control) or RTS/CTS/DTR (hardware flow control))

Graeme



I believe that the trouble is with "echoing" user input on console: think, if keys are entered when the suprocess is running and printing the stuff, you have to echo keys entered by user, but simply placing them to the console would mix them with characters captured from subprocess stdout. Even worse, user is supposed to edit the line...

But maybe my worries are void - perhaps console should always print edited input at the end until Enter is pressed and then send it to subprocess...

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New EH handling in MinGW
Next Topic: DLL and U++ type
Goto Forum:
  


Current Time: Tue May 14 08:57:57 CEST 2024

Total time taken to generate the page: 0.01965 seconds