()
| 401 | } |
| 402 | |
| 403 | func (s *IOStreams) RefreshScreen() { |
| 404 | if s.IsStdoutTTY() { |
| 405 | // Move cursor to 0,0 |
| 406 | fmt.Fprint(s.Out, "\x1b[0;0H") |
| 407 | // Clear from cursor to bottom of screen |
| 408 | fmt.Fprint(s.Out, "\x1b[J") |
| 409 | } |
| 410 | } |
| 411 | |
| 412 | // TerminalWidth returns the width of the terminal that controls the process |
| 413 | func (s *IOStreams) TerminalWidth() int { |
no test coverage detected