Skip to main content

Terminal emulator for prompt_toolkit.

Project description


*A terminal emulator widget for prompt_toolkit applications*


- Cross platform: Windows + Linux support.

Applications using ptterm

- `pymux <>`_: A terminal multiplexer,
written in Python.


Inserting the terminal into a prompt_toolkit application is as easy as
importing a `Terminal` and inserting it into the layout. You can pass a
`done_callback` to get notified when the terminal process is done.

.. code:: python

#!/usr/bin/env python
from prompt_toolkit.application import Application
from prompt_toolkit.layout import Layout
from ptterm import Terminal

def main():
def done():

application = Application(

if __name__ == '__main__':


- Thanks to `pyte <>`_: for implementing a
vt100 emulator.
- Thanks to `winpty <`_: for providing a PTY
like interface for the Windows console.
- Thank to `yawinpty` for creating a Winpty wrapper.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ptterm, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size ptterm-0.2-py2-none-any.whl (32.0 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size ptterm-0.2-py3-none-any.whl (33.4 kB) File type Wheel Python version 3.6 Upload date Hashes View
Filename, size ptterm-0.2.tar.gz (27.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page