Re: Capture console app output into texview?

2009-11-20 Thread David Nečas
On Fri, Nov 20, 2009 at 03:09:56PM +0100, Till Harbaum / Lists wrote: > The interesting part is that your program > below shows the same behaviour: I don't see any output until the > embedded application (geotoad in this case) has ended. This is > rather annoying as the program runs quite some sec

Re: Capture console app output into texview?

2009-11-20 Thread Till Harbaum / Lists
Hi, thanks a lot for those hints. The interesting part is that your program below shows the same behaviour: I don't see any output until the embedded application (geotoad in this case) has ended. This is rather annoying as the program runs quite some seconds and the user may think something is br

Re: Capture console app output into texview?

2009-11-20 Thread Dov Grobgeld
Here's my solution to the problem. It runs the external command in an external thread. This is probably an overkill for the problem at hand, on the other hand it is a good demo for how to create a worker thread and capture its output in the GUI. This currently does not work with windows at it is us

Re: Capture console app output into texview?

2009-11-20 Thread Emmanuel Rodriguez
On Thu, Nov 19, 2009 at 10:11 PM, Till Harbaum / Lists wrote: > Hi, > > i am trying to run a text mode application in the background of my gtk one > and display its output in a textview. I know this is supposed to be done > using g_spawn_async_with_pipes and then link to the output via > g_io_add_