Update utils.sh

This commit is contained in:
MacRimi 2025-02-02 12:49:51 +01:00 committed by GitHub
parent 1c1e3f4688
commit 28588bcb44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,6 +67,17 @@ spinner() {
done
}
# Function to simulate typing effect
type_text() {
local text="$1"
local delay=0.05
for ((i=0; i<${#text}; i++)); do
echo -n "${text:$i:1}"
sleep $delay
done
echo
}
# Display info message with spinner
msg_info() {
local msg="$1"