[Lazarus] Package manager front-end

Vincent Snijders vsnijders at quicknet.nl
Sat May 10 14:17:11 CEST 2008


Antonio Sanguigni schreef:
> Hi guys,
> 
> I'm playing with the idea to develope a graphical front-end for a 
> console package manager of a linux distro. I have seen TProcess wiki and 
> it is great to capture output. I did not understood well, though, if 
> there a way to interact with the shell using TProcess. I mean, the user 
> with this front-end should be able to answer to the package manager 
> question (for example: Do you want to install (Y/n) ) etc.. . Is it 
> possible to accomplish this with TProcess class ? Is there some example 
> code that can help me ?
> 

Try 
http://wiki.lazarus.freepascal.org/Executing_External_Programs#Using_input_and_output_of_a_TProcess

There is an example in lazarus-ccr svn:
https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/examples/process

Vincent



More information about the Lazarus mailing list