diff options
Diffstat (limited to 'playbooks/roles/src/templates/volumes')
| -rwxr-xr-x | playbooks/roles/src/templates/volumes/soft-serve/hooks/update | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/playbooks/roles/src/templates/volumes/soft-serve/hooks/update b/playbooks/roles/src/templates/volumes/soft-serve/hooks/update index c39d55f..989173a 100755 --- a/playbooks/roles/src/templates/volumes/soft-serve/hooks/update +++ b/playbooks/roles/src/templates/volumes/soft-serve/hooks/update @@ -4,9 +4,23 @@ function logo() { git config --global color.ui auto -cat <<'EOF' | while IFS= read -r line; do echo -e "$line"; done + # ANSI escape codes + local HIDE_CURSOR='\033[?25l' + local SHOW_CURSOR='\033[?25h' + + # Hide cursor for cleaner animation + echo -ne "$HIDE_CURSOR" + + # Print logo line by line with delay + cat <<'EOF' | while IFS= read -r line; do {{ colored_logo }} EOF + echo -e "$line" + sleep 0.1 + done + + # Show cursor again + echo -ne "$SHOW_CURSOR" } # -- </logo> -- |
