terminal

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package terminal contains the final containment boundary for text written to an interactive terminal. It deliberately does not mutate data retained for structured output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sanitize

func Sanitize(value string) string

Sanitize removes terminal escape sequences, controls, bidirectional controls, and invisible spoofing characters. Newlines and tabs remain available to multi-line human and Markdown renderers.

func SanitizeLine

func SanitizeLine(value string) string

SanitizeLine contains text for a single-line terminal location.

func UnsafeRune

func UnsafeRune(current rune) bool

UnsafeRune reports code points that must not be emitted raw to a terminal. Structured serializers may escape these runes instead of removing them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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