Dust::Term
Terminal dimensions, mirroring the terminal_size crate dust uses:
ioctl(TIOCGWINSZ) on stdout, then COLUMNS/LINES, then the defaults.
Constants
DEFAULT_HEIGHT = 30
DEFAULT_WIDTH = 80
TIOCGWINSZ = 21523_u64
Instance methods
height
dust subtracts a fixed amount of lines so that the output plus shell prompts fit on screen.
size
Sourcewidth
Source