package screenbuf

Import Path
	github.com/manifoldco/promptui/screenbuf (on go.dev)

Dependency Relation
	imports 3 packages, and imported by one package

Involved Source Files screenbuf.go
Package-Level Type Names (only one, which is exported)
/* sort exporteds by: | */
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. Clear clears all previous lines and the output starts from the top. Flush writes any buffered data to the underlying io.Writer, ensuring that any pending data is displayed. Reset truncates the underlining buffer and marks all its previous lines to be cleared during the next Write. Write writes a single line to the underlining buffer. If the ScreenBuf was previously reset, all previous lines are cleared and the output starts from the top. Lines with \r or \n will cause an error since they can interfere with the terminal ability to move between lines. WriteString is a convenient function to write a new line passing a string. Check ScreenBuf.Write() for a detailed explanation of the function behaviour. *T : io.StringWriter *T : io.Writer func New(w io.Writer) *ScreenBuf
Package-Level Functions (only one, which is exported)
New creates and initializes a new ScreenBuf.
Package-Level Variables (total 3, none are exported)
Package-Level Constants (only one, which is unexported)