about summary refs log tree commit diff stats
path: root/winch
blob: 845aa5714117ac11d941323feb8a4bb324f45616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

winch() {
shopt -s checkwinsize; (:;:)

printf '\e[?25l\e[H\e[K%s %sx%s\e[8' "winch!" "$COLUMNS" "$LINES"
}

trap winch WINCH

while : ; do
	:
done