diff options
Diffstat (limited to 'winch')
-rw-r--r-- | winch | 13 |
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 | |||
3 | winch() { | ||
4 | shopt -s checkwinsize; (:;:) | ||
5 | |||
6 | printf '\e[?25l\e[H\e[K%s %sx%s\e[8' "winch!" "$COLUMNS" "$LINES" | ||
7 | } | ||
8 | |||
9 | trap winch WINCH | ||
10 | |||
11 | while : ; do | ||
12 | : | ||
13 | done | ||