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