displaytext

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package displaytext prepares untrusted metadata for display in a terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sanitize

func Sanitize(s string) string

Sanitize returns valid UTF-8 terminal display text. It removes ANSI CSI, OSC, DCS, SOS, PM, and APC control sequences; drops unsafe control runes; and turns horizontal tabs and line breaks into spaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

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