Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Terminal ¶
type Terminal struct {
// contains filtered or unexported fields
}
Terminal is used to write messages and display status lines which can be updated. When the output is redirected to a file, the status lines are not printed.
func New ¶
func New(ctx context.Context, dst TerminalWriter) *Terminal
New returns a new Terminal for dst. A goroutine is started to update the terminal. It is terminated when ctx is cancelled. When dst is redirected to a file (e.g. via shell output redirection), no status lines are printed.
type TerminalWriter ¶
TerminalWriter is an io.Writer which also has a file descriptor.
Click to show internal directories.
Click to hide internal directories.