GetTtySize returns the height and width in characters of the TTY, or zero for both if no TTY is connected.
()
| 64 | // GetTtySize returns the height and width in characters of the TTY, or |
| 65 | // zero for both if no TTY is connected. |
| 66 | func (o *Out) GetTtySize() (height uint, width uint) { |
| 67 | return o.cs.terminalSize() |
| 68 | } |
| 69 | |
| 70 | // SetIsTerminal overrides whether a terminal is connected. It is used to |
| 71 | // override this property in unit-tests, and should not be depended on for |
no test coverage detected