Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-05

How are TProcess.Input and TProcess.XtermProgram used?

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

vfclists .

How are TProcess.Input and TProcess.XtermProgram 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?

Can the XTermProgram be popped up on the screen in order to view the program output and interact with it as well?

Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150509/6b166534/attachment.html>

Reply by email

Michael Van Canneyt
to vfclists .
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.

Reply by email