Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultTermWidth = 80
)
Variables ¶
View Source
var ( EmptyBytes = []byte("") CsiStart = []byte("\x1b[") CsiEnd = []byte("m") CsiReset = []byte("\x1b[0m") )
View Source
var (
TermWidth = DefaultTermWidth
)
Functions ¶
func Color256ToColor8 ¶
func Color256ToIndex ¶
func GetTermWidth ¶
func GetTermWidth() int
Types ¶
type ConsoleTerm ¶
type ConsoleTerm struct {
// contains filtered or unexported fields
}
func NewConsoleTerm ¶
func NewConsoleTerm(width int) *ConsoleTerm
func (*ConsoleTerm) CsiReset ¶
func (t *ConsoleTerm) CsiReset() []byte
func (*ConsoleTerm) Width ¶
func (t *ConsoleTerm) Width() int
type RenderedColors ¶
type RenderedColors struct {
// contains filtered or unexported fields
}
func NewRenderedColors ¶
func NewRenderedColors(t Term, c *colors.Colors) *RenderedColors
func (*RenderedColors) BgCode ¶
func (r *RenderedColors) BgCode() []byte
func (*RenderedColors) Colors ¶
func (r *RenderedColors) Colors() *colors.Colors
func (*RenderedColors) FgCode ¶
func (r *RenderedColors) FgCode() []byte
func (*RenderedColors) SetNext ¶
func (r *RenderedColors) SetNext(next *RenderedColors)
func (*RenderedColors) String ¶
func (r *RenderedColors) String() string
type Rgb24Term ¶
type Rgb24Term struct {
// contains filtered or unexported fields
}
func NewRgb24Term ¶
type Rgb8Term ¶
type Rgb8Term struct {
// contains filtered or unexported fields
}
func NewRgb8Term ¶
Click to show internal directories.
Click to hide internal directories.