[Lazarus] How can a program executing a command via TProcess detect an input prompt and create a graphical dialog for the input?
Michael Van Canneyt
michael at freepascal.org
Wed Jan 2 09:18:15 CET 2013
On Tue, 1 Jan 2013, Frank Church wrote:
> How can a Lazarus/FPC program that is executing a command via TProcess detect an input prompt and create a graphical dialog for the input?
> e.g. say I execute an ssh command via TProcess which requires a password to be input - how could it detect it, prompt for it with a graphical dialog and pass
> it on for the command to continue?
There is no way to do this in general.
There are some unix tools that attempt to do this ('expect'),
but all of them require some form of script, taylored to the tools that you want to use it for.
More information about the Lazarus