Skip to main content

teleprint

Print a growing transcript to the terminal's own scrollback. A block is a string with a key: update a streamed reply by using its key again. Visible rows change in place; rows that already scrolled away stay as printed.

Inside a Tokio runtime, write each frame to the same terminal, starting at column zero:

use teleprint::{Transcript, tty::Tty};

let mut tty = Tty::open()?;
let (cols, rows) = tty.size()?;
let mut view = Transcript::new(cols, rows);
tty.write(&view.put("request", "How many?"))?;
tty.write(&view.put("reply", "Working…"))?;
tty.write(&view.put("reply", "42"))?;
tty.write(&view.finish())?;

Use sync to replace the ordered blocks together and show an editable draft below them. Pass a UTF-8 byte offset into the draft to place the cursor. The caller handles input; Tty.events supplies key, paste and resize events.

tty.mouse(true) also requests clicks and wheel events. Use view.hit(clicked_row - cursor_row) with a signed row difference to get the block key or wrapped tail row under a click.

let blocks = [("request", "How many?"), ("reply", "42")];
let draft = "> next";
tty.write(&view.sync(&blocks, draft, Some(draft.len())))?;

For a table or other width-dependent layout, pass (key, source, display) triples to sync_projected_at(cols, rows, blocks, draft, cursor). Use the same source across resizes. resize(cols, rows) reflows plain text. finish() removes the draft and leaves the cursor below the transcript.

SGR colors and emphasis survive; input cannot move the cursor or issue terminal commands. Use plain(text) for a pipe or file. For a Kitty-capable terminal, kitty::Image::decode(base64) reads a PNG or JPEG. Its render(id, max_cols, tmux) returns the protocol transmission to write first and a placeholder grid for a transcript block. Images sent on the primary screen must be sent again for alternate-screen placement; tmux requires allow-passthrough on.

Python

Install with pip install teleprint. The Python Transcript class calls the same Rust implementation:

import os, sys
from teleprint import Transcript

t = Transcript(*os.get_terminal_size())
for frame in (t.put('reply', 'Working…'), t.put('reply', '42'), t.finish()):
    sys.stdout.write(frame)
    sys.stdout.flush()

See DEV.md for the package layout and tests.

Metadata

Release files for teleprint 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for teleprint 0.1.9
File Size Uploaded Provenance Actions
teleprint-0.1.9.tar.gz 26.2 kB With provenance Details for teleprint-0.1.9.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for teleprint 0.1.9
File Actions
teleprint-0.1.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for teleprint-0.1.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
teleprint-0.1.9-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ ARM64 Details for teleprint-0.1.9-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
teleprint-0.1.9-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for teleprint-0.1.9-cp313-cp313-macosx_11_0_arm64.whl
teleprint-0.1.9-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for teleprint-0.1.9-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
teleprint-0.1.9-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details for teleprint-0.1.9-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
teleprint-0.1.9-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for teleprint-0.1.9-cp312-cp312-macosx_11_0_arm64.whl
teleprint-0.1.9-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for teleprint-0.1.9-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
teleprint-0.1.9-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details for teleprint-0.1.9-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
teleprint-0.1.9-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for teleprint-0.1.9-cp311-cp311-macosx_11_0_arm64.whl
teleprint-0.1.9-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for teleprint-0.1.9-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
teleprint-0.1.9-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details for teleprint-0.1.9-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
teleprint-0.1.9-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for teleprint-0.1.9-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 6.6 MB

Release files / teleprint-0.1.9.tar.gz

Download URL teleprint-0.1.9.tar.gz
Size 26.2 kB
Tags Source
SHA-256 checksum
How to use checksums
109ca4e0a1290843ca64aa436c47515269a906ad04885440fd9aff19d4251b78
BLAKE2b-256 checksum
How to use checksums
ba82859c39b9806d044d00068f1a257f46e4508b76dc6d7e07b17b70025d9be6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / teleprint-0.1.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL teleprint-0.1.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 560.2 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
5256becc1b222171d63a00909b86f90c7e3a1b70e0680c0b6b1b80317e4240dd
BLAKE2b-256 checksum
How to use checksums
08b10761a8574f2c4978142d551d5adb2bb4126e8e4a8d78c91d3c638744488a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / teleprint-0.1.9-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL teleprint-0.1.9-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 554.7 kB
Tags CPython 3.13 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
b4c6d6a343a94a3220a5c3fa6ba614aa8f31235c7f03e22b3bc277c43fd864c1
BLAKE2b-256 checksum
How to use checksums
729bf70c9e0e8a01ca7e94417ddedbfeeaf46cd7b76a574e35eb2c495ba0dc7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / teleprint-0.1.9-cp313-cp313-macosx_11_0_arm64.whl

Download URL teleprint-0.1.9-cp313-cp313-macosx_11_0_arm64.whl
Size 515.7 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
520513350652fb2a503974806807380e6aeda200c3f70d5a287222a1ee74707a
BLAKE2b-256 checksum
How to use checksums
6c79c13da3dfcd9e0b95dd1ab767b47fcf6f335687da23411f54b11ee1c2cc87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / teleprint-0.1.9-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL teleprint-0.1.9-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 560.2 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
36c0028b373db0610a75940311ee9aaff7e99cb0823cf1ace4908fb3e73d985a
BLAKE2b-256 checksum
How to use checksums
629857eb54f1ea10d84053ad203002d045d8828af49d684dec9833e749c461e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / teleprint-0.1.9-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL teleprint-0.1.9-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 555.3 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
4662ed0110695e1937d7ece8af1a64857cddfb2844bd9ee4bd7db7ecb972a22e
BLAKE2b-256 checksum
How to use checksums
afbd81f3dace2d494c8f0a9de80ed2bb9d1de98780852f1d80aa9801b14988a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / teleprint-0.1.9-cp312-cp312-macosx_11_0_arm64.whl

Download URL teleprint-0.1.9-cp312-cp312-macosx_11_0_arm64.whl
Size 515.8 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
eda2c3cb3307e2666299f068d5b0dbc8f7a983318f75704041947a67cb15fd21
BLAKE2b-256 checksum
How to use checksums
48e6f9146b27a67d0b50dbc026760c17d0b895561eaeeead02a2d81b70d4f97e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / teleprint-0.1.9-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL teleprint-0.1.9-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 561.4 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
73690ecc64b31d699dd4c95b1976f255f96b1924dca9476ab4df4cbf8a78006e
BLAKE2b-256 checksum
How to use checksums
4f853337551f510affdb7a3b9cc6892035f1fc6ca22888435c24b0b5cfe35b78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / teleprint-0.1.9-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL teleprint-0.1.9-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 556.5 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
1a0b475ad120fff6556c208844ef2c9059ceadfa4b7079f80011f115360ee2f0
BLAKE2b-256 checksum
How to use checksums
e44ed5791df08be7769c88036dddf58efc1e8675467355ff72afba1353be6079
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / teleprint-0.1.9-cp311-cp311-macosx_11_0_arm64.whl

Download URL teleprint-0.1.9-cp311-cp311-macosx_11_0_arm64.whl
Size 517.9 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
fcca230c3fdc9646c7386edc50cf5346ba7765b5eed14c0392c62641a597cd01
BLAKE2b-256 checksum
How to use checksums
525388a2e62e44bb29d6c62bdf727732dc685f3fa766239f7afd9b9908fcfa55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / teleprint-0.1.9-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL teleprint-0.1.9-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 561.5 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
9fd91ac39fd08dfac5dcd399e90b9fec7c85fd7fe265db1f0a361bda55103051
BLAKE2b-256 checksum
How to use checksums
f3a25900d13676959a0c3f759f42f57c6d15fe8ed83b93fc0293e9ae40a93f3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / teleprint-0.1.9-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL teleprint-0.1.9-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 556.7 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
166f27a79420ffaec0443bdbdb2bcf3889b4ada7adcc85a456a569404f969170
BLAKE2b-256 checksum
How to use checksums
7b9319ff0a4789405a76a858f171576cbea48e9a049ea49187a482f31d66afb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / teleprint-0.1.9-cp310-cp310-macosx_11_0_arm64.whl

Download URL teleprint-0.1.9-cp310-cp310-macosx_11_0_arm64.whl
Size 518.0 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b25840ae34e51fc71cf644a819f4af0ea9c1d1d70657798be8bb7d3a7e2281b6
BLAKE2b-256 checksum
How to use checksums
2e0bac28bcca9f400d555c6e362bd15328561f55626cdf27c1df9a61a3116d60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for teleprint 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for teleprint-0.1.9.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page