package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Feb 3, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package ansiterm provides rudimentary support for emitting ANSI terminal escape codes.
Write ANSI terminal codes to w.
ANSI terminal escape code.
See https://en.wikipedia.org/wiki/ANSI_escape_code
const (
CodeReset Code = iota
CodeBold
CodeFaint
CodeItalic
CodeUnderline
CodeSlowBlink
CodeRapidBlink
CodeReverseVideo
CodeConceal
CodeCrossedOut
)
const (
CodeFGBlack Code = iota + 30
CodeFGRed
CodeFGGreen
CodeFGYellow
CodeFGBlue
CodeFGMagenta
CodeFGCyan
CodeFGWhite
)
Foreground colors.
const (
CodeBGBlack Code = iota + 40
CodeBGRed
CodeBGGreen
CodeBGYellow
CodeBGBlue
CodeBGMagenta
CodeBGCyan
CodeBGWhite
)
Background colors.
const (
CodeFGIBlack Code = iota + 90
CodeFGIRed
CodeFGIGreen
CodeFGIYellow
CodeFGIBlue
CodeFGIMagenta
CodeFGICyan
CodeFGIWhite
)
Intense foreground colors.
const (
CodeBGIBlack Code = iota + 100
CodeBGIRed
CodeBGIGreen
CodeBGIYellow
CodeBGIBlue
CodeBGIMagenta
CodeBGICyan
CodeBGIWhite
)
Intense background colors.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.