TermEmulator is a pure python module for emulating V100 terminal programs. It supports most of the important V100 escape sequences(e.g. cursor movement). Initially I started writing the emulator for a serial port communication program and later thought of releasing it as a separate module. You can get the module here.
The module comes with a demo application which is written in wxWidgets. The demo emulates any terminal program inside a text box. The following are the screenshots of emulating bash, emacs and vi using TermEmulator and the demo. successfully emulated(ran in a text box) bash, emacs, vi and some other terminal programs.
Some of the features of TermEmulator:
* Provides callback for updating terminal screen
* Supports graphics rendition(text style, foreground and background color)
* Allows resizing terminal window dynamically
* Direct access to raw screen buffer