about summary refs log tree commit diff stats
path: root/winch
diff options
context:
space:
mode:
Diffstat (limited to 'winch')
-rw-r--r--winch13
1 files changed, 13 insertions, 0 deletions
diff --git a/winch b/winch new file mode 100644 index 0000000..845aa57 --- /dev/null +++ b/winch
@@ -0,0 +1,13 @@
1#!/usr/bin/env bash
2
3winch() {
4shopt -s checkwinsize; (:;:)
5
6printf '\e[?25l\e[H\e[K%s %sx%s\e[8' "winch!" "$COLUMNS" "$LINES"
7}
8
9trap winch WINCH
10
11while : ; do
12 :
13done