()
| 282 | } |
| 283 | |
| 284 | func (w *ttyWriter) print() { |
| 285 | terminalWidth := goterm.Width() |
| 286 | terminalHeight := goterm.Height() |
| 287 | if terminalWidth <= 0 { |
| 288 | terminalWidth = 80 |
| 289 | } |
| 290 | if terminalHeight <= 0 { |
| 291 | terminalHeight = 24 |
| 292 | } |
| 293 | w.printWithDimensions(terminalWidth, terminalHeight) |
| 294 | } |
| 295 | |
| 296 | func (w *ttyWriter) printWithDimensions(terminalWidth, terminalHeight int) { |
| 297 | w.mtx.Lock() |
no test coverage detected