programming question
Kurt Wall
kwall
Mon May 17 11:59:42 PDT 2004
In a 0.8K blaze of typing glory, Rick Sivernell wrote:
> Hi list
>
> I am creating a IDE, and I want to call a terminal program, xterm - Eterm etc., &
> have it start compiling a program, get the the output for display in a ide window. Has
> anyone done this before and would like to share it with me. I would be extremely
> gratefull and raise a very large cold one, warm one from of the friends in the UK, in
> your honour<g>. You can contact me offlist to save bandwidth. Thanks in advance.
You have (at least) two options. One is invoke an emulator using fork() and
exec(), then dup() or dup2() the file descriptors for stdout, stderr,
and/or stdin into your IDE. If you want to use xterm, it has the capability
to be embedded into apps. Have a look at xterm's -into argument. A third
option that might be easier to manage, is to invoked the compilation
using fork() and exec(), and then to capture std{out,in,err} by reading
their respective file descriptors. and directing the output into your
IDE.
Kurt
--
Pure drivel tends to drive ordinary drivel off of the TV screen.
More information about the Linux-users
mailing list