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