aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-12 15:20:07 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-12 19:26:14 +1200
commit1a3ae549beac1445e1bb44a809f3245e67ed0dfd (patch)
treea41e9d07117a92e654d40922f5677cb170ef77c9 /bin
parentMerge branch 'hotfix/v8.35.1' into develop (diff)
downloaddotfiles-1a3ae549beac1445e1bb44a809f3245e67ed0dfd.tar.gz
dotfiles-1a3ae549beac1445e1bb44a809f3245e67ed0dfd.zip
Add qat(1df), implementing an item from IDEAS.md
Diffstat (limited to 'bin')
-rwxr-xr-xbin/qat.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/qat.sh b/bin/qat.sh
new file mode 100755
index 00000000..31f5e8dd
--- /dev/null
+++ b/bin/qat.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+restore() {
+ if [ -n "$stty" ] ; then
+ stty "$stty"
+ fi
+}
+trap restore EXIT
+if [ -t 0 ] ; then
+ stty=$(stty -g)
+ stty -echo
+fi
+cat