package
0.0.0-20230523030606-1c2fe5b72aff
Repository: https://github.com/yuzukicat/cmdg.git
Documentation: pkg.go.dev

# Functions

Color returns ANSI escape for a given color index.
Exit resets the output for exit.
FixedANSIWidthRight returns a fixed width version of a string, padding on the right.
FixedWidth returns a fixed width version of a string.
NewScreen creates a new screen.
NewScreen2 creates a new screen with given dimensions.
StringWidth returns the render width of a string.
TerminalTitle returns ANSI sequence to change the terminal title.
TermSize returns the terminal size.

# Constants

256 color mode colors.
16 bit color mode bright colors.
256 color mode colors.
256 color mode colors.
8 Color mode colors.
256 color mode colors.
256 color mode colors.
256 color mode colors.
16 bit color mode bright colors.
256 color mode colors.
256 color mode colors.
256 color mode colors.
256 color mode colors.
TODO: actually this may not be supported.
256 color mode colors.
Normal is not the same as Reset, because Reset resets Bold/Underline/Reverse.
256 color mode colors.
256 color mode colors.
8 Color mode colors.
256 color mode colors.
256 color mode colors.
by some terminals.
256 color mode colors.
256 color mode colors.
TODO: actually this may not be supported.
by some terminals.
https://gitlab.freedesktop.org/terminal-wg/specifications/-/merge_requests/2.
256 color mode colors.
256 color mode colors.
8 Color mode colors.
256 color mode colors.

# Structs

Screen is a screen.