Skip to main content

a pure python tty

Project description

bittty

A pure Python terminal emulator.

Almost usable; some scroll region problems, doesn't like textual in textual yet.

Demo

Run the standalone demo:

python ./demo/terminal.py

Or use the textual demo to see it in a TUI:

uvx textual-tty

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.

Recent changes

  • 🐌 use regex for parsing to speed things up a tad (~2x faster)
  • 📚 document half a billion DEC private modes we don't support
  • 🔙 DECLM - allow \n to act like \r\n so we don't have to rely on cooked input on the pty when using as a library.
  • 🖼️ DEC Special Graphics
  • 🐌 Faster colour/style parser
  • ⛓️‍💥 Split out from textual-tty into separate package

bugs / todo

  • architecture - pretty big
  • gui
    • make a terminal input class, for standalone input
    • make framebuffer.py
    • choose a display driver
  • performance improvements
    • parse with regex over large buffer sizes
      • reconsider CSI end char approach
    • line cache for outputs
    • revisit colours
  • scrollback buffer
    • implement logloglog for scrollback with wrapping
  • bugs
    • corruption in stream - debug it
    • scroll region: scroll up in vim corrupts outside scroll region
  • add terminal overlay visuals
    • bell flash effect
    • make cursor an overlay
    • make mouse an overlay
    • debug overlay for scroll regions
  • Support themes
  • bittty-specific escape sequences
    • visible mouse on / off
    • debugging info
    • record
    • list sequences + values
  • Document all the escape sequences
    • build a terminal library

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

bittty-0.0.8.tar.gz (37.8 kB view details)

Uploaded Source

Built Distribution

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

bittty-0.0.8-py3-none-any.whl (44.8 kB view details)

Uploaded Python 3

File details

Details for the file bittty-0.0.8.tar.gz.

File metadata

  • Download URL: bittty-0.0.8.tar.gz
  • Upload date:
  • Size: 37.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for bittty-0.0.8.tar.gz
Algorithm Hash digest
SHA256 137f0f9c3856bf6ffe26b69289dd5d00684518cf165950cb513707d17f06eb7b
MD5 1660d9ec7b9e3295d13d4d724cb95036
BLAKE2b-256 fa000011f5e57e7ff6cec9536362fe34319f510ef9616a6a1f0bae4847b9683b

See more details on using hashes here.

File details

Details for the file bittty-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: bittty-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 44.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for bittty-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c66333dc89239c9a7b8006408b073a6f069f702a1f520ba71a37eb5f0317b4c7
MD5 58695f1130828b2c8b775dce5bbaa20d
BLAKE2b-256 5ccbbfba997aa013dc88c2369356b230ea0f23d8ff72cf6e0e3aa56250a3301d

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