6.5 Creating a new Pseudo-tty Interface

Sage pseudo-tty interfaces can be created that allow Sage to work with an almost completely arbitrary command line program, and don't require any modification or extensions to the command line program. They are also surprisingly fast and flexible (given how they work!), because all IO is buffered, and because interaction between Sage and the the command line program can be non-blocking (asynchronous), using the _send, _so_far, and _get methods.

See About this document... for information on suggesting changes.