Cook, Alan wrote:
> I have written an application using BOA, that basically on the result of
> pressing a button in my GUI will telnet to a Linux based device and
> execute the appropriate script which is resident on the unit. I do
> read_until commands to look for various questions the remote script will
> ask, and then send the responses.
> Would it be possible to echo all this text to a multiline wxTextCtrl box
> that I have created in my GUI, so that it works like a Terminal Display
> Window, and if so what would be the best way to do it.
Yes, I'm sure it's possible.
Just call wxTextCtrl.AppendText() to add text you receive.
If you want the GUI to be non-blocking, do the telnet reading
in a thread and update the wxTextCtrl with wxCallAfter().