diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-11-04 22:52:41 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-11-04 23:00:07 -0800 |
| commit | 1df2cfc65cdd18ae5d6a23015b92d150bd895c7d (patch) | |
| tree | 824fd2657ed30b0b7db3d670cde28e2c1e97ed0d /playbooks | |
| parent | 506ad987851c5c0fad48fb361f0a471eb8a365d1 (diff) | |
| download | infra-1df2cfc65cdd18ae5d6a23015b92d150bd895c7d.tar.gz infra-1df2cfc65cdd18ae5d6a23015b92d150bd895c7d.zip | |
logo animation hook.
Diffstat (limited to 'playbooks')
| -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> -- |
