18 lines
392 B
Bash
18 lines
392 B
Bash
#!/bin/bash
|
|
|
|
type_text() {
|
|
local text="$1"
|
|
local delay="$2"
|
|
local char
|
|
|
|
while IFS= read -r -n1 char; do
|
|
printf "%b" "$char"
|
|
sleep "$delay"
|
|
done <<< "$text"
|
|
|
|
printf "\n"
|
|
}
|
|
|
|
type_text "$(echo -e "\e[3;37mNein… du hast es wirklich geschafft.\e[0m")" 0.05
|
|
type_text "$(echo -e "\e[3mAber glaub ja nicht, dass ich es dir nun einfacher mache.\e[0m")" 0.05
|