termtext

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 5 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Block

func Block(s string) string

Block escapes multi-row text while preserving line breaks. It normalizes CRLF to LF and expands tabs to spaces before escaping each row.

func EscapeCluster

func EscapeCluster(cluster string, cells int) (string, bool)

EscapeCluster returns the display form of one grapheme cluster and reports whether it changed. cells is the width the segmenter measured for it.

func Row

func Row(s string) string

Row escapes invalid UTF-8 and characters that can disrupt a terminal row, so measured cell widths match the rendered text.

Types

This section is empty.

Jump to

Keyboard shortcuts

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