TODO(stevvooe): The following are system specific. Break these out if we decide to build this package further.
()
| 76 | // decide to build this package further. |
| 77 | |
| 78 | func (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 |
no outgoing calls
no test coverage detected