LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

tte

Play visual effects over text in the terminal

TLDR

Pipe a command through the matrix effect
$ ls -la | tte matrix
copy
Pick an effect at random
$ [command] | tte -R
copy
Read the text from a file
$ tte -i [path/to/file] beams
copy
Show the options for one effect
$ tte decrypt -h
copy
Limit a random choice to named effects
$ [command] | tte -R --include-effects decrypt beams rain
copy
Print a bash completion script
$ tte --print-completion bash
copy

SYNOPSIS

[command] | tte [options] effect [effect-options]tte -i file [options] effect [effect-options]

DESCRIPTION

tte is the terminal program installed with the terminaltexteffects package. It reads text from a pipe or from --input-file and plays one built-in effect over it: rain, decrypt, beams, matrix, burn, and others. The animation uses ANSI sequences, runs in line, and tries to leave the terminal usable when it finishes.Each effect adds its own flags, generated from that effect's configuration. tte decrypt -h shows them. The same engine can be called as python -m terminaltexteffects when the package is imported instead of installed as an application.

PARAMETERS

effect

Effect to play. tte effect -h lists that effect's own options.
-i file, --input-file file
Read the input text from file instead of standard input.
-R, --random-effect
Choose an effect at random.
--seed n
Seed the random effect choice.
--include-effects name...
Effects --random-effect is allowed to choose. Names are separated by spaces.
--exclude-effects name...
Effects --random-effect must not choose.
--frame-rate fps
Target frames per second. 0 disables the limit. The default is 60.
--no-color
Draw the effect without color.
--xterm-colors
Map 24-bit hex colors to the nearest xterm 256-color index.
--terminal-background-color color
Terminal background, as an xterm index 0-255 or a hex RGB value 000000-ffffff. Effects use it for fades.
--existing-color-handling always|dynamic|ignore
What to do with ANSI colors already in the input. always keeps them, dynamic lets the effect decide, and ignore drops them. The default is ignore.
--wrap-text
Wrap lines that are wider than the canvas.
--canvas-width n, --canvas-height n
Canvas size. A positive integer sets that dimension, 0 follows the terminal, and -1 follows the input text. Both default to -1.
--anchor-canvas sw|s|se|e|ne|n|nw|w|c
Where the canvas sits in the terminal. The default is sw.
--anchor-text n|ne|e|se|s|sw|w|nw|c
Where the input text sits inside the canvas. The default is sw.
--tab-width n
Spaces per tab. Must be greater than zero.
--ignore-terminal-dimensions
Draw the full canvas even when it is larger than the terminal.
--reuse-canvas
Move the cursor up over the input's rows and draw there again, instead of adding new rows.
--no-eol
Do not print a newline when the effect finishes.
--no-restore-cursor
Leave the cursor hidden after the effect.
-v, --version
Print the version and exit.
--print-completion bash|zsh|powershell
Print a completion script and exit.

INSTALL

nix profile install nixpkgs#terminaltexteffects
copy

CAVEATS

The effect set and some flags on the project's development branch are ahead of the last published package. A flag documented upstream can be missing from the tte that a package manager installed.--reuse-canvas is reliable in a script that owns the screen. An interactive prompt between runs makes the cursor movement land in the wrong place.--random-effect needs a terminal that can play the animation. --no-color and --xterm-colors are the escapes for terminals that cannot show 24-bit color.

HISTORY

terminaltexteffects was created by ChrisBuilds and is written in Python. The installed command name is tte.

SEE ALSO

RESOURCES

Copied to clipboard
Kai