From 2729c2e563e30fff3337b79f7211506dc4087681 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 10 Jul 2020 20:21:24 +0300 Subject: [PATCH] More compact scan.sh prompt --- bin/bin/scan.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/bin/scan.sh b/bin/bin/scan.sh index 0ae6fd4..a816d34 100755 --- a/bin/bin/scan.sh +++ b/bin/bin/scan.sh @@ -35,7 +35,7 @@ preview() { do_next() { rotate=180 - [ -z "$NEGATIVE" ] && crop=40 || crop=10 + [ -z "$NEGATIVE" ] && crop=20 || crop=10 ctr=$(( $ctr + 1 )) cur=`printf "%03d.ppm" $ctr` } @@ -43,7 +43,7 @@ do_next() { do_next while : ; do - echo "$cur: (v)iew r(otate) c(rop) (s)can (p)review (n)ext" + echo -n "$cur: (v)iew r(otate) c(rop) (s)can (p)review (n)ext > " read c case $c in v) -- 2.44.0