Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A terminal-like window for wxWidgets?

I'm looking to add an element to my wxWidgets GUI that behaves like a terminal emulator. Not in terms of a shell which executes commands, but just the input-output setup of an application running in a terminal.

Basically, the requirements are:

Streaming input/output: When you enter a character, it is added to an input stream, and when something is piped to the terminal, it prints out immediately.

No editing: Once you type in a character, it's permanently there, since it's probably been consumed by the application running in the terminal.

Some sort of scrolling (even if it just shows a few lines or something).

It would be nice if there is something that already does this, but suggestions on how to implement this with already existing controls such as wxTextCtrl would also be welcome.

like image 280
Jeremy Salwen Avatar asked Jan 20 '10 00:01

Jeremy Salwen


1 Answers

I know this is a couple weeks late, but hopefully it's still useful. I've got a project called Chameleon that uses a wxWidgets-based VT100 terminal widget, which was itself based off of a project called taTelnet. The Chameleon source is available from my website (download page here). Not sure if it's exactly what you're looking for, but it might give you some ideas. Feel free to let me know if you have any questions about it.

like image 102
markerikson Avatar answered Sep 21 '22 21:09

markerikson