getSize method
Returns the current size of the terminal.
Implementation
Future<Size> getSize() async {
final size = _winch.getWindowSize();
return Size(
width: size.cells.width,
height: size.cells.height,
widthPx: size.pixels.width,
heightPx: size.pixels.height,
);
}