...

Package xterm

import "oss.terrastruct.com/util-go/xterm"
Overview
Index

Overview ▾

Constants

See https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Functions-using-CSI-_-ordered-by-the-final-character_s_

const (
    Bold = csi + "1m"

    Red     = csi + "31m"
    Green   = csi + "32m"
    Yellow  = csi + "33m"
    Blue    = csi + "34m"
    Magenta = csi + "35m"
    Cyan    = csi + "36m"

    BrightRed     = csi + "91m"
    BrightGreen   = csi + "92m"
    BrightYellow  = csi + "93m"
    BrightBlue    = csi + "94m"
    BrightMagenta = csi + "95m"
    BrightCyan    = csi + "96m"
)

func CCPrefix

func CCPrefix(env *xos.Env, w io.Writer, s string) string

CC meaning constant color. So constant color prefix.

func Prefix

func Prefix(env *xos.Env, w io.Writer, caps, s string) string

func Tput

func Tput(env *xos.Env, w io.Writer, caps, s string) string