Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/lib/common.sh
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2024-01-18 02:39:34 +0100
committerLevente Polyak <anthraxx@archlinux.org>2024-01-22 19:44:51 +0100
commitfedfc80ca15a196d565b9f5dc5159be594f74da3 (patch)
tree67a030a88785518fca9844e9823feebbf984a880 /src/lib/common.sh
parent66e83c950cfa1c51820f04130abfacaf7c6b4c4c (diff)
feat(term): add terminal utils to handle a dynamic spinner
The spinner uses a status file that can be used to dynamically update the message. The spinner itself buffers the output in a frame buffer variable before flushing a frame in one go. Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'src/lib/common.sh')
-rw-r--r--src/lib/common.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/common.sh b/src/lib/common.sh
index 9d5622e..63f43f1 100644
--- a/src/lib/common.sh
+++ b/src/lib/common.sh
@@ -13,7 +13,7 @@ set +u +o posix
$DEVTOOLS_INCLUDE_COMMON_SH
# Avoid any encoding problems
-export LANG=C
+export LANG=C.UTF-8
# Set buildtool properties
export BUILDTOOL=devtools
@@ -108,6 +108,7 @@ cleanup() {
if [[ -n ${WORKDIR:-} ]] && $_setup_workdir; then
rm -rf "$WORKDIR"
fi
+ tput cnorm >&2
exit "${1:-0}"
}