Documentation ¶
Index ¶
- type Line
- type Screen
- func (s *Screen) Bleu(text string) string
- func (s *Screen) CarvePrint(content string)
- func (s *Screen) CleanLines()
- func (s *Screen) Clear()
- func (s *Screen) ClearNamedLayers(layerName string)
- func (s *Screen) Critical(text string) string
- func (s *Screen) Display(content string, preserveContent bool, lineName string)
- func (s *Screen) Emphasis(text string) string
- func (s *Screen) InsertLine(content string, name string)
- func (s *Screen) Invert(text string) string
- func (s *Screen) Normal(text string) string
- func (s *Screen) NumLines() int
- func (s *Screen) Ok(text string) string
- func (s *Screen) Purple(text string) string
- func (s *Screen) RemoveBlankLines()
- func (s *Screen) Render()
- func (s *Screen) ShowPrint(content string)
- func (s *Screen) Teal(text string) string
- func (s *Screen) Warning(text string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Line ¶
type Line struct {
// contains filtered or unexported fields
}
Line is a representation of a line on the Screen. `keep` is to indicate if the line should survive calls to clear the screen `name` is to give the line a name so to be able to clear it directly
type Screen ¶
type Screen struct {
// contains filtered or unexported fields
}
Screen is the global primitive that keeps track of lines on the screen and allow to operate o them to do things like animations or rendering
func (*Screen) CarvePrint ¶
CarvePrint is a shortcut to an unnamed permanent line
func (*Screen) CleanLines ¶
func (s *Screen) CleanLines()
CleanLines is to remove lines that are not marked as keep = true
func (*Screen) Clear ¶
func (s *Screen) Clear()
Clear clears the actual screen so it can be repinted
func (*Screen) ClearNamedLayers ¶
ClearNamedLayers clears the layers with the specified name
func (*Screen) Display ¶
Display is the basic call to print a line to the screen. it allows to set the `keep` flag for the line and to name line successive calls to display will clear lines who have `keep` set to false
func (*Screen) InsertLine ¶
InsertLine adds a line to the screen without rendering or clearing the screen
func (*Screen) Invert ¶
Invert inverts the color of the text practical for when the background color is changed
func (*Screen) RemoveBlankLines ¶
func (s *Screen) RemoveBlankLines()
RemoveBlankLines is a shortcut to remove lines that are blank