nix/module/common/bash/module/Terminal.sh
2024-03-04 03:04:57 +03:00

7 lines
123 B
Bash

# Get terminal size.
function tsize() {
local width=$(tput cols)
local height=$(tput lines)
echo "${width}x${height}"
}