Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScreenBuf ¶
type ScreenBuf struct {
// contains filtered or unexported fields
}
ScreenBuf is a convenient way to write to terminal screens. It creates, clears and, moves up or down lines as needed to write the output to the terminal using ANSI escape codes.
func (*ScreenBuf) Clear ¶ added in v0.9.1
Clear clears all previous lines and the output starts from the top.
func (*ScreenBuf) Flush ¶
Flush writes any buffered data to the underlying io.Writer, ensuring that any pending data is displayed.
func (*ScreenBuf) Reset ¶
func (s *ScreenBuf) Reset()
Reset truncates the underlining buffer and marks all its previous lines to be cleared during the next Write.
Click to show internal directories.
Click to hide internal directories.