termshot

command
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command termshot turns terminal transcripts into SVG "terminal window" pictures for the beginner guides.

go run ./tools/termshot docs/assets/term

For every NAME.txt in the folder it writes NAME.svg next to it. The first line of a .txt file is "title: <window title>"; every other line is drawn as is, in a monospace font, without wrapping. The picture is as wide as the longest line. Lines that start with a shell prompt ("PS C:\...> " or "$ ") draw the prompt in a second color.

The output depends only on the input, so a test can check that every committed .svg matches its .txt.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL