emojiwidth

command
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: LGPL-2.1 Imports: 5 Imported by: 0

Documentation

Overview

emojiwidth is a one-shot diagnostic that asks your terminal how many cells it actually advances the cursor for a handful of emoji glyphs. Run when fv-go renders with stray gaps or overflow on emoji-heavy rows — the report tells you which codepoints disagree between fv-go's UAX#11 width tables and your terminal's real rendering.

Usage:

go run ./cmd/emojiwidth

Must be run in an interactive terminal — it uses CSI 6n (Device Status Report) to ask the terminal where the cursor is before and after printing each glyph.

Directories

Path Synopsis
dump renders the demo's emoji line into a headless cellbuf and prints what each cell ends up holding.
dump renders the demo's emoji line into a headless cellbuf and prints what each cell ends up holding.
wholewin renders the Unicode-demo window into a headless backend and prints every cell of the Emoji row plus a few cells of the surrounding rows.
wholewin renders the Unicode-demo window into a headless backend and prints every cell of the Emoji row plus a few cells of the surrounding rows.

Jump to

Keyboard shortcuts

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