On Sat, 9 May 2015, vfclists . wrote:
How are TProcess.Input and TProcess.XtermProgram used?
The xtermprogram is used to run the actual program, if the poNewConsole option
is used.
Is it possible to test if a program is waiting for input in order to send it
some input, such as keystrokes for instance?
You can send it keystrokes, but to my knowledge there is no way to see if it
is waiting for input.
There are some programs that wait for some specific output before they send
input to the program.
(for instance the passwd prompt)
Can the XTermProgram be popped up on the screen in order to view the program
output and interact with it as well?
Yes, that is it's purpose.
Michael.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus