Skip to main content

text-mode HTML formatter for Unix terminals, supports ruby, tables, wide characters etc

Project description

TermLayout

TermLayout is a text-mode HTML formatter for Unix terminals which supports:

  • Ruby markup (multiple rt and rb elements are stacked)

  • Tables (including nesting and alignment)

  • Wide characters (uses locale settings from LC_CTYPE, LANG etc)

  • Smaller terminal sizes. In some cases a table will still end up being wider than the terminal and not easily reflowable; if that happens then at least each cell should fit. But in many cases TermLayout can arrange for no horizontal scrolling to be necessary.

Unrecognised markup is left in the output for inspection.

TermLayout is not a Web browser: it has no facilities for navigating links. It is meant only for formatting text on a terminal using HTML markup. I wrote it when I wanted to page through a document with Ruby markup in fbterm but couldn’t find a text-mode browser that would format this markup correctly.

If you are using TermLayout with an annotator generated by Annotator Generator, you might also be interested in tmux-annotator.sh which sets up tmux with a “hotkey” to annotate the current screen and display the result in TermLayout.

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

termlayout-0.16.tar.gz (19.3 kB view details)

Uploaded Source

File details

Details for the file termlayout-0.16.tar.gz.

File metadata

  • Download URL: termlayout-0.16.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for termlayout-0.16.tar.gz
Algorithm Hash digest
SHA256 aba3c0b791497910911db687327ff5660be16eea90f48f56a15c974c950d4422
MD5 1c752dc6497131229b58665c329b0fc9
BLAKE2b-256 0589975995bed79ee335a2615c2c9f7e5268a230c6ddf41d8fb2aa9b2ae8edda

See more details on using hashes here.

Supported by

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