cropmargin

command
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Command cropmargin trims a rendered terminal screenshot back to its content.

The tape that produces the screenshot declares a viewport taller than the report needs, on purpose: a height fitted to the current output fails the moment the report gains a line, and that failure lands during a release, after the binaries are built and signed. The cost of the margin is dead space at the foot of the image the README and the home page both load.

Cropping afterwards removes the trade-off rather than picking a side. The viewport stays generous enough to absorb a report that grows; the published image is only as tall as what was actually drawn.

The bounds come from the pixels, not from a row count. Estimating "so many lines at so many pixels each" is off by a few pixels either way, and the direction that clips the last line of a report is the one nobody notices until it is published.

Jump to

Keyboard shortcuts

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