import terminal let (width, height) = terminalSize() echo "Terminal width: ", width echo "Terminal height: ", height