mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
This is intended for special cases where it must be guaranteed that the output on stdout exactly matches what was written to the io.Writer.
14 lines
310 B
Go
14 lines
310 B
Go
package ui
|
|
|
|
import "io"
|
|
|
|
// Terminal is used to write messages and display status lines which can be
|
|
// updated. See termstatus.Terminal for a concrete implementation.
|
|
type Terminal interface {
|
|
Print(line string)
|
|
Error(line string)
|
|
SetStatus(lines []string)
|
|
CanUpdateStatus() bool
|
|
OutputRaw() io.Writer
|
|
}
|