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 » Developing U++ » U++ Developers corner » Q: howto incorporate a native console window in GUI
Re: Q: howto incorporate a native console window in GUI [message #31153 is a reply to message #31151] Thu, 10 February 2011 14:45 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
scenario:

a console process is running separately, there is no option to do it in same thread due to blocking read desire from stdin.

the console process (or any other)

its read end (stdin) has been wired up to read from a pipe end, the write end is fed by some control of upp, LineEdit key input or what ever. this is easy. this side can be blocking on writing to pipe, the process is blocking reading from pipe

its write (stdout) end must also be another pipe to which the process may write blocking. the read end would need to be polled by upp gui say every 100 ms. this can be done in a timer callback.. so the gui directly processes the read pipe data.

thus arbitrary processes can be hooked up in upp, even a common cmd.exe console.

i'll try that one.
 
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: Issue tracking...
Next Topic: Question: Simple plugin implementation
Goto Forum:
  


Current Time: Sun May 12 10:06:34 CEST 2024

Total time taken to generate the page: 0.01890 seconds