()
| 413 | } |
| 414 | |
| 415 | func (s *IOStreams) RefreshScreen() { |
| 416 | if s.IsStdoutTTY() { |
| 417 | // Move cursor to 0,0 |
| 418 | fmt.Fprint(s.Out, "\x1b[0;0H") |
| 419 | // Clear from cursor to bottom of screen |
| 420 | fmt.Fprint(s.Out, "\x1b[J") |
| 421 | } |
| 422 | } |
| 423 | |
| 424 | // TerminalWidth returns the width of the terminal that controls the process |
| 425 | func (s *IOStreams) TerminalWidth() int { |
no test coverage detected