ptterm
======
*A terminal emulator widget for prompt_toolkit applications*
Features
--------
- Cross platform: Windows + Linux support.
Applications using ptterm
-------------------------
- `pymux <https://github.com/jonathanslenders/pymux>`_: A terminal multiplexer,
written in Python.
Example
-------
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.exit()
application = Application(
layout=Layout(
container=Terminal(done_callback=done)
),
full_screen=True,
)
application.run()
if __name__ == '__main__':
main()
Thanks
------
- Thanks to `pyte <https://github.com/selectel/pyte>`_: for implementing a
vt100 emulator.
- Thanks to `winpty <https://github.com/rprichard/winpty`_: for providing a PTY
like interface for the Windows console.
- Thank to `yawinpty` for creating a Winpty wrapper.
======
*A terminal emulator widget for prompt_toolkit applications*
Features
--------
- Cross platform: Windows + Linux support.
Applications using ptterm
-------------------------
- `pymux <https://github.com/jonathanslenders/pymux>`_: A terminal multiplexer,
written in Python.
Example
-------
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.exit()
application = Application(
layout=Layout(
container=Terminal(done_callback=done)
),
full_screen=True,
)
application.run()
if __name__ == '__main__':
main()
Thanks
------
- Thanks to `pyte <https://github.com/selectel/pyte>`_: for implementing a
vt100 emulator.
- Thanks to `winpty <https://github.com/rprichard/winpty`_: for providing a PTY
like interface for the Windows console.
- Thank to `yawinpty` for creating a Winpty wrapper.
Metadata
Release files for ptterm 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ptterm-0.2.tar.gz | 27.5 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ptterm-0.2-py3-none-any.whl | Python 3 | none | any | Details |
| ptterm-0.2-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 92.9 kB
Release files / ptterm-0.2.tar.gz
| Download URL | ptterm-0.2.tar.gz |
|---|---|
| Size | 27.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4f846fbf5d9f302a5442c8607d29b31beab08adb72ab34605085a7c55eb117a
|
|
BLAKE2b-256 checksum How to use checksums |
3c23792677e3a8a68e86849ac116ceb9bcfa70f83681f491934f99d04f663968
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ptterm-0.2-py3-none-any.whl
| Download URL | ptterm-0.2-py3-none-any.whl |
|---|---|
| Size | 33.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
848f397bf48bc0ac6bad8ed0400eb333d9f731eee6bba02415110231dd57970d
|
|
BLAKE2b-256 checksum How to use checksums |
057c6db53ec6947b26441a55a79726e42668e268685431078991a52d0fffce42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ptterm-0.2-py2-none-any.whl
| Download URL | ptterm-0.2-py2-none-any.whl |
|---|---|
| Size | 32.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
aa2e91f30b8aff9170238e300caf245f71b5ceea8a196716aa5cc906968750ec
|
|
BLAKE2b-256 checksum How to use checksums |
b83bb451c064fea66d1498824dc52451a67ecb2e1a9bc83752405da49fdee3dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |