Skip to content

Commit

Permalink
updated ttygif.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Nov 14, 2024
1 parent fe0155d commit 75625a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/ttygif.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ and then opens the resulting gif
If on Mac uses your browser since Mac Preview shows the gif frames instead of the running gif
Also resizes the terminal to be a standard 80x25 characters before it begins. Set the environment variable
NO_RESIZE_TERMINAL to any value to avoid this
Requires ttygif to be installed, attempts to install it via your package manager if not found in \$PATH
"
Expand All @@ -46,7 +49,9 @@ if ! type -P ttygif &>/dev/null; then
"$srcdir/../packages/install_packages.sh" ttygif
fi

resize -s 25 80
if [ -n "${NO_RESIZE_TERMINAL:-}" ]; then
resize -s 25 80
fi

clear

Expand Down

0 comments on commit 75625a7

Please sign in to comment.