Documentation ¶
Overview ¶
Package char represent a Char in a terminal
Index ¶
- func Equal(c, c2 Charer) bool
- type Char
- func (c *Char) Background() color.Color
- func (c *Char) Blink() bool
- func (c *Char) Bold() bool
- func (c *Char) Content() string
- func (c *Char) Crossed() bool
- func (c *Char) Double() bool
- func (c *Char) Faint() bool
- func (c *Char) Foreground() color.Color
- func (c *Char) Inverse() bool
- func (c *Char) Invisible() bool
- func (c *Char) Italic() bool
- func (c *Char) Underline() bool
- type Charer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Char ¶
type Char struct { Value string ForegroundColor color.Color BackgroundColor color.Color IsBold bool IsFaint bool IsItalic bool IsUnderline bool IsBlink bool IsInverse bool IsInvisible bool IsCrossed bool IsDouble bool }
Char is a concrete implementation of the Charer interface.
func (*Char) Background ¶
Background returns the backgroundColor of the char
func (*Char) Foreground ¶
Foreground returns the foreground color of the char
type Charer ¶
type Charer interface { Content() string Background() color.Color Foreground() color.Color Bold() bool Faint() bool Italic() bool Underline() bool Blink() bool Inverse() bool Invisible() bool Crossed() bool Double() bool }
Charer represents the properties a char in an Area should have to be able to be represented in a terminal.
Click to show internal directories.
Click to hide internal directories.