From 6eab317e564253f15248b83a4db543a0d7a83d08 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Wed, 18 Dec 2024 12:09:48 +0100 Subject: [PATCH] added debugging set-x.tape --- src/tests/vhs/set-x.tape | 57 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/tests/vhs/set-x.tape diff --git a/src/tests/vhs/set-x.tape b/src/tests/vhs/set-x.tape new file mode 100644 index 0000000..939feeb --- /dev/null +++ b/src/tests/vhs/set-x.tape @@ -0,0 +1,57 @@ +# Where should we write the GIF? +Output ./../media/terminal/set-x.gif + +# Set up a 1200x600 terminal with 46px font. +Set Margin 0 +Set FontSize 19 +Set Width 600 +Set Height 500 +Set CursorBlink true + +# Type a command in the terminal. +Type 'vi' + +# Pause for dramatic effect... +Sleep 1000ms + +Enter + +# Type a command in the terminal. +Type "i#!/bin/sh" + +Enter + +Type "set -x # enable debugging +Enter +Enter +Type "foo=bar" +Enter +Type "echo $foo" +Enter + +Sleep 4000ms + +# Type a command in the terminal. +Escape +Type ":wq! myscript" + +# Pause for dramatic effect... +Sleep 2000ms + +Enter + +Type "chmod +x myscript" + +Sleep 1000ms + +Enter + +Type "./myscript" + +Sleep 2000ms + +Enter + +# Admire the output for a bit. +Sleep 4s +