about summary refs log tree commit diff stats
path: root/winch
diff options
context:
space:
mode:
authorCase Duckworth2020-05-22 08:38:40 -0500
committerCase Duckworth2020-05-22 08:38:40 -0500
commit6cce4bd5e7e89406c0ca5942076c95c458bba2dc (patch)
tree89e5a9393b5c99aa2a6eb0fc87e9e97e7ec84e57 /winch
downloadbollux-6cce4bd5e7e89406c0ca5942076c95c458bba2dc.tar.gz
bollux-6cce4bd5e7e89406c0ca5942076c95c458bba2dc.zip
Ready to upload
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