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 #1673 is a reply to message #1672] Mon, 13 March 2006 14:50 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
wilho wrote on Mon, 13 March 2006 08:21

Hi!

Just got the idea (meaning I haven't yet really done any reasearch) but; how complicated it would be create terminal emulator upp-control based on SDL?

Whats best platform-independent way to spawn subprocess and capture its output and feed its input? How to render ANSI with SDL reseived from shell/cmd?

I have none of SDL and only some c++ experience, so whats I'm really after is some understandable resources and maybe comments to make a conclusion if I'm able to begin with this.



Capturing output is relatively easy; feeding input is IMHO a trouble - the general problem is that current APIs do not give you a hint when user is allowed to feed that input (in other words, so far I have not found a way how to detect that slave process is waiting for the user input).

In fact, I would be glad if some such way would existed, that would allow me to improve "console mode" of executing programs in TheIDE....

Miriek
 
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: Wed May 15 01:44:01 CEST 2024

Total time taken to generate the page: 0.03210 seconds