Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Terminal ¶ added in v0.1.0
type Terminal struct {
// contains filtered or unexported fields
}
Terminal represents an initialized terminal interface (its width has been measured)
func New ¶ added in v0.1.0
func New() *Terminal
New initializes a terminal (measures its width). This was originally done inside `init`, but this causes issues with some debugging/testing setups and is now done explicitly.
func (*Terminal) ClearLine ¶ added in v0.1.0
func (term *Terminal) ClearLine()
ClearLine clears the current line in the terminal.
func (*Terminal) Overwritef ¶ added in v0.1.0
Overwritef clears the current line in the terminal and then performs a fmt.Printf() with the provided args.
Click to show internal directories.
Click to hide internal directories.