MCPcopy Create free account
hub / github.com/abiosoft/ishell / write

Method write

progress.go:114–119  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

112}
113
114func (p *progressBarImpl) write(s string) error {
115 p.erase(p.writtenLen)
116 p.writtenLen = utf8.RuneCountInString(s)
117 _, err := p.writer.Write([]byte(s))
118 return err
119}
120
121func (p *progressBarImpl) erase(n int) {
122 for i := 0; i < n; i++ {

Callers 1

refreshMethod · 0.95

Calls 1

eraseMethod · 0.95

Tested by

no test coverage detected