Documentation ¶
Index ¶
- func Colorize(text string, fg colorCode) string
- func Colorize8(text string, fg int) string
- func Colorize8WithBackground(text string, fg int, bg int) string
- func ColorizeWithBackground(text string, fg colorCode, bg colorCode) string
- type VT100
- func (l *VT100) ClearLine(_ string) (int, error)
- func (l *VT100) ClearScreen() (int, error)
- func (l *VT100) Colorize(text string, f int, b int, mode interfaces.ColorMode) string
- func (l *VT100) MoveCursorLeft() (int, error)
- func (l *VT100) MoveCursorRight() (int, error)
- func (l *VT100) MoveCursorTopLeft() (int, error)
- func (l *VT100) RestoreCursor() (int, error)
- func (l *VT100) SaveCursor() (int, error)
- func (l *VT100) Scan(data []byte)
- func (l *VT100) SetEnterKey(key rune)
- func (l *VT100) SetKeyFunc(e interfaces.KeyFunc)
- func (l *VT100) SetSize(w int, h int)
- func (l *VT100) Write(text string) (int, error)
- func (l *VT100) WriteColor(text string, fg interfaces.ColorDef, bg interfaces.ColorDef, ...) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorizeWithBackground ¶
Types ¶
type VT100 ¶
type VT100 struct {
// contains filtered or unexported fields
}
func (*VT100) ClearScreen ¶
func (*VT100) MoveCursorLeft ¶
func (*VT100) MoveCursorRight ¶
func (*VT100) MoveCursorTopLeft ¶
func (*VT100) RestoreCursor ¶
func (*VT100) SaveCursor ¶
func (*VT100) SetEnterKey ¶
func (*VT100) SetKeyFunc ¶
func (l *VT100) SetKeyFunc(e interfaces.KeyFunc)
func (*VT100) WriteColor ¶
func (l *VT100) WriteColor(text string, fg interfaces.ColorDef, bg interfaces.ColorDef, mode interfaces.ColorMode) (int, error)
Click to show internal directories.
Click to hide internal directories.