Files
Debian-Retzel/guide/crime5/typewrite.sh
2026-01-08 12:47:59 +01:00

27 lines
1019 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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.03
type_text "$(echo -e "\033[3mWer oder was glaubst du eigentlich, hier zu sein?\033[0m\n")" 0.03
type_text "$(echo -e "")" 1
type_text "$(echo -e "\033[3mAb diesem Moment bleiben dir exakt \033[0m\033[1;3m10 Minuten\033[0m\033[3m, um die Aufgabe zu lösen.\033[0m")" 0.03
type_text "$(echo -e "\033[3mWenn die Zeit abläuft… nun ja… dann verschwindet deine Chance genauso lautlos wie das Flüstern hinter dir.\033[0m")" 0.03
type_text "$(echo -e "\n")" 0.9
type_text "$(echo -e "\033[3mDie Uhr beginnt jetzt zu ticken.\033[0m")" 0.05
type_text "$(echo -e "\33[3mTipp: Versuche den Timer zu Stoppen!\033[0m")" 0.05