A bash script that simulates typewriter-style text output with customizable typing speeds and indentation.
- Variable typing speeds from extremely fast to extremely slow
- Customizable text indentation
- Supports both direct text input and stdin
- Natural-looking random delays between characters
- ANSI color support for error messages
- Handles multi-line text with proper line breaks
# Clone the repository
git clone https://github.com/yourusername/typewriter.git
# Make the script executable
cd typewriter
chmod +x typewriter
# Optional: Move to a directory in your PATH
sudo cp typewriter /usr/local/bin/
typewriter [OPTIONS] text||<stdin
-s, --speed SPEED
: Set typing speed- Available speeds: xxxfast, xxfast, xfast, vfast, fast, normal, slow, vslow, xslow, xxslow, xxxslow
- Default: normal
-i, --indent INDENT
: Indent text by specified number of spaces-V, --version
: Display version information-h, --help
: Show help message
Direct text input:
typewriter -s slow "This is a test."
Using stdin:
echo "This is from stdin" | typewriter -s slow
With indentation:
typewriter -s slow -i 4 "This is a test with 4-space indent."
Multi-line text:
typewriter "First line\nSecond line\nThird line"
Speed | Min Delay (ms) | Max Delay (ms) |
---|---|---|
xxxfast | 0 | 0 |
xxfast | 1 | 3 |
xfast | 3 | 7 |
vfast | 7 | 15 |
fast | 15 | 25 |
normal | 25 | 40 |
slow | 40 | 55 |
vslow | 55 | 70 |
xslow | 70 | 85 |
xxslow | 85 | 95 |
xxxslow | 99 | 99 |
- Bash 4.0 or later
- Linux/Unix environment
- Basic Unix utilities (shuf, printf)
This project is licensed under the GPL3 License - see the LICENSE file for details.
Gary Dean
Current version: 1.0.3