Skip to content

Commit

Permalink
extract: reuse same line for output; clear at end
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaku committed Feb 28, 2023
1 parent 882c7f2 commit b2e2daf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/dasht-docsets-extract
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,5 @@ for tgz; do
else rm -v "$arg"
fi
done
done
done | # rewrite verbose output onto a single line and clear it at the end
awk 'function p(s) { printf("\033[2K\r%s", s) }; { p($0) }; END { p("") }'

0 comments on commit b2e2daf

Please sign in to comment.