Skip to main content

A tty for Textual UIs

Project description

textual-tty

A terminal emulator for Textual apps, using bittty, my pure Python terminal emulator.

Terminals in your terminal: draggable, resizable windows running real ptys.

Demo

uvx textual-tty

Usage

from textual_tty import Terminal, TerminalWindow, Window

# A terminal as a plain widget: composes a bittty Board, never subclasses it.
yield Terminal(command="htop")

# Or in a draggable, resizable window that closes when the process exits.
yield TerminalWindow(command=["vim", "README.md"])

Terminal posts Bell, TitleChanged and ProcessExited messages; anything deeper is on terminal.board (the bittty emulator). Window is a bare-bones draggable/resizable window you can use for other things too.

Read the demo code (textual_tty/demo.py) for a working app.

Links

License

WTFPL with one additional clause

  1. Don't blame me

Do wtf you want, but don't blame me when it rips a hole in your trousers.

Project details


Download files

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

Source Distribution

textual_tty-0.3.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

textual_tty-0.3.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file textual_tty-0.3.0.tar.gz.

File metadata

  • Download URL: textual_tty-0.3.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for textual_tty-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5d9a2e707487641daf14d560b88c21619dc87190e9248850e8e019c400bab09f
MD5 b897965722bcdafa33fd591114f927e3
BLAKE2b-256 d7a235d8796c01290e5e5a6b30246f68a1bff7926a67c5ebdb727654ebd9d662

See more details on using hashes here.

File details

Details for the file textual_tty-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: textual_tty-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for textual_tty-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 901774a30308d953ca8e7df0f37ef38d1b23c474ddf905bf5b83002b16ce60f3
MD5 47dd62e20b7acdf0873048416c587ed9
BLAKE2b-256 7de2507541a31ea2e5bab380971f2068842e9d9a2305b8bd28e40e96bc6927a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page