diff options
Diffstat (limited to 'optcvt.sh')
-rwxr-xr-x | optcvt.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/optcvt.sh b/optcvt.sh new file mode 100755 index 0000000..2f3f89c --- /dev/null +++ b/optcvt.sh @@ -0,0 +1,13 @@ +#!/bin/sh +TCVT=./tcvt.py +MINWIDTH=80 + +SIZE=`stty size` +test $? = 0 || exit $? +COLUMNS="${SIZE#* }" + +if test "$COLUMNS" -ge $((2*$MINWIDTH+1)); then + exec $TCVT "$@" +else + exec "$@" +fi |