Advertisement
Sweetening

mark.sh

Dec 18th, 2024
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. #!/bin/bash
  2. # Function to simulate typing with delay
  3. type_text() {
  4. local text="$1"
  5. local delay="${2:-0.05}" # Default delay is 0.05 seconds
  6. for (( i=0; i<${#text}; i++ )); do
  7. echo -n "${text:$i:1}"
  8. sleep "$delay"
  9. done
  10. echo
  11. }
  12.  
  13. # Print ASCII Art in dark blue with typing effect
  14. type_text "${DARK_BLUE}██╗ ██╗ █████╗ ██╗ ██╗ ██████╗ ██╗ ██╗███╗ ██╗"
  15. type_text "${DARK_BLUE}██║ ██║██╔══██╗██║ ██║██╔════╝ ██║ ██║████╗ ██║"
  16. type_text "${DARK_BLUE}██║ ██║███████║██║ ██║██║ ███╗███████║██╔██╗ ██║"
  17. type_text "${DARK_BLUE}╚██╗ ██╔╝██╔══██║██║ ██║██║ ██║██╔══██║██║╚██╗██║"
  18. type_text "${DARK_BLUE} ╚████╔╝ ██║ ██║╚██████╔╝╚██████╔╝██║ ██║██║ ╚████║"
  19. type_text "${DARK_BLUE} ╚═══╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝"
  20. type_text "" # Empty line for spacing
  21. type_text " ███████╗ ██████╗ ███████╗████████╗"
  22. type_text " ██╔════╝██╔═══██╗██╔════╝╚══██╔══╝"
  23. type_text " ███████╗██║ ██║█████╗ ██║"
  24. type_text " ╚════██║██║ ██║██╔══╝ ██║"
  25. type_text " ███████║╚██████╔╝██║ ██║"
  26. type_text " ╚══════╝ ╚═════╝ ╚═╝ ╚═╝"
  27. type_text "" # Empty line for spacing
  28. type_text "${GREEN}>(setup)${RESET}"
  29.  
  30. # Small pause to ensure ASCII art is fully displayed
  31. sleep 1
  32.  
  33. # Script logic goes here
  34. type_text "\nWelcome to the script! Customize this section as needed.\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement