Documentation ¶
Index ¶
- Constants
- Variables
- func CSI_Params(pC *EscCode) bool
- func HighColor(arCodes []int) ([]int, int)
- func IaEqual(A, B []int) bool
- func IsBtween(v, lo, hi int) bool
- func TranslateColors(sSGR []int, bIntense bool) []int
- func VF_Ignore(pC *EscCode) bool
- func VF_NonCSI(pC *EscCode) bool
- func VF_SGR(pC *EscCode) bool
- type DebugFunc
- type EscCode
- type Grid
- func (gr *Grid) ClearFromPosToBegin(pos GridPos)
- func (gr *Grid) ClearFromPosToEnd(pos GridPos)
- func (gr *Grid) ClearLine(pos GridPos, bToBegin bool)
- func (gr *Grid) Height() int
- func (gr *Grid) Inc(pos *GridPos, nAmt int)
- func (gr *Grid) IncClamp(pos *GridPos, X, Y int)
- func (gr *Grid) Print(iWri io.Writer, nRowBytes int, bDebug, bXterm256, bFakeEsc bool)
- func (gr *Grid) Put(pos GridPos, rChar rune, sgrCodes SGR) error
- func (gr *Grid) ResetChars(rChar rune)
- func (gr *Grid) Touch(nHeight int)
- type GridCell
- type GridPos
- type GridRow
- type OC
- type SGR
- type UTF8Marshaller
- type ValidateFunc
Constants ¶
View Source
const ( SGR_BOLD uint32 = 1 << iota SGR_FAINT SGR_ITALIC SGR_UNDERLINE SGR_BLNK_SLOW SGR_BLNK_FAST SGR_INVERSE SGR_CONCEAL SGR_STRIKETHROUGH )
View Source
const ( CIX_FG = iota CIX_BG CIX_MAX )
View Source
const ( DEFAULT_FG int = 37 DEFAULT_BG int = 40 )
View Source
const ( CHR_ESCAPE = 0x1B CHR_CR = 0x0D CHR_LF = 0x0A )
View Source
const SGR_TERMINATORS = "cfhlmsuABCDEFGHJKNOPSTX\\]^_"
https://www.gnu.org/software/screen/manual/html_node/Control-Sequences.html
Variables ¶
View Source
var Array437 [256]rune = [256]rune{}/* 256 elements not displayed */
TRANSLATION ARRAY
View Source
var OrigDark = []OC{ OC{Hex: `#000000`, Xterm256: 16}, OC{Hex: `#AB0000`, Xterm256: 124}, OC{Hex: `#00AB00`, Xterm256: 34}, OC{Hex: `#AB5700`, Xterm256: 130}, OC{Hex: `#0000AB`, Xterm256: 19}, OC{Hex: `#AB00AB`, Xterm256: 127}, OC{Hex: `#00ABAB`, Xterm256: 37}, OC{Hex: `#ABABAB`, Xterm256: 248}, }
View Source
var OrigLight = []OC{ OC{Hex: `#575757`, Xterm256: 240}, OC{Hex: `#FF5757`, Xterm256: 203}, OC{Hex: `#57FF57`, Xterm256: 83}, OC{Hex: `#FFFF57`, Xterm256: 227}, OC{Hex: `#5757FF`, Xterm256: 63}, OC{Hex: `#FF57FF`, Xterm256: 207}, OC{Hex: `#57FFFF`, Xterm256: 87}, OC{Hex: `#FFFFFF`, Xterm256: 15}, }
Functions ¶
func CSI_Params ¶
func TranslateColors ¶ added in v0.5.3
Types ¶
type Grid ¶
type Grid struct {
// contains filtered or unexported fields
}
func (*Grid) ClearFromPosToBegin ¶
func (*Grid) ClearFromPosToEnd ¶
func (*Grid) ResetChars ¶
type SGR ¶
type SGR struct { // Bold, Faint, Italic, Underline, Blink, Inverse, Conceal, Strikethrough bool Flags uint32 Color [CIX_MAX][]int }
func (*SGR) MergeCodes ¶
MergeCodes SGR int codes (like ESC[0m) into an existing SGR struct
type UTF8Marshaller ¶
type ValidateFunc ¶
Click to show internal directories.
Click to hide internal directories.