termtext

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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