programming question

Rick Sivernell res005ru
Mon May 17 11:59:42 PDT 2004


On Mon, 23 Feb 2004 20:16:28 -0500
Kurt Wall <kwall at kurtwerks.com> wrote:

> 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.
> _______________________________________________
> Linux-users mailing list
> Linux-users at smtp.linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://smtp.linux-sxs.org/mailman/listinfo/linux-users
Kurt

   Hot damn, a virtual fountain of info here, many thanks Kurt. DL BitTor. now and
will review xterm for the switch. All of which is far easier than writing a term
emulator.<g>

cheers

-- 
Rick Sivernell
Dallas, Texas  75287
972 306-2296
res005ru at gte.net
Gentoo Linux
Registered Linux User #193859

   .~.
  / v \
 /( _ )\
   ^ ^
In Linux we trust!


More information about the Linux-users mailing list