From 75625a7eef6072d3eddb0e2fa03305cf92da1936 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Thu, 14 Nov 2024 20:03:17 +0400 Subject: [PATCH] updated ttygif.sh --- bin/ttygif.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/ttygif.sh b/bin/ttygif.sh index 5cc3b2f0d96..7f404a7563f 100755 --- a/bin/ttygif.sh +++ b/bin/ttygif.sh @@ -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 " @@ -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