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 #31147 is a reply to message #31146] Thu, 10 February 2011 13:33 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
i already thought of sth like this. but it seems quite difficult. i'd prefer to have a native window space.. but it seems as if it is not easy to solve. otoh visual studio does sth similar as well, eclipse has a console window too..but i dont know if it's a native or simple widget with redirecting input / output as you stated.
every system interaction is them posted via system native exec calls, i think.

i thought of having the custom control (LineEdit, DocEdit) write its generated input to a Stream, and have another Stream as the receiver.

the flow control in this case is different, opposed to normal processes that read / write blocking to stdin/stdout. in the control i can't read the stream blocking. i could, using a separate thread that reads the Stream, which uses blocking read for its _Get(). but it's a whole different setup. short: console apps are dataflow based, while gui apps are event based.

i already have a python environment working. it's quite easy. but having a test envirnment, and the ability to include such a prompt in own app would make a great deal in upp. redirecting I/O properly is as usual, the problem..
 
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: Sat May 11 21:50:41 CEST 2024

Total time taken to generate the page: 0.02017 seconds