MCPcopy
hub / github.com/containerd/containerd / clearLines

Method clearLines

pkg/progress/writer.go:78–86  ·  view source on GitHub ↗

TODO(stevvooe): The following are system specific. Break these out if we decide to build this package further.

()

Source from the content-addressed store, hash-verified

76// decide to build this package further.
77
78func (w *Writer) clearLines() error {
79 for i := 0; i < w.lines; i++ {
80 if _, err := fmt.Fprintf(w.w, "\x1b[1A\x1b[2K\r"); err != nil {
81 return err
82 }
83 }
84
85 return nil
86}
87
88// countLines in the output. If a line is longer than the console width then
89// an extra line is added to the count for each wrapped line. If the console

Callers 1

FlushMethod · 0.95

Implementers 5

pushWritercore/remotes/docker/pusher.go
namespacedWritercore/metadata/content.go
fakeWritercore/content/helpers_test.go
remoteWritercore/content/proxy/content_writer.go
writerplugins/content/local/writer.go

Calls

no outgoing calls

Tested by

no test coverage detected