diff options
Diffstat (limited to 'bin/qat.sh')
-rwxr-xr-x | bin/qat.sh | 12 |
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 |