Skip to content

Instantly share code, notes, and snippets.

@griimick
Created October 28, 2022 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save griimick/d3d47c7f890388d7ab018cfb598b9102 to your computer and use it in GitHub Desktop.
Save griimick/d3d47c7f890388d7ab018cfb598b9102 to your computer and use it in GitHub Desktop.
VHS Tapes for box-cli examples running in Windows outside WSL
# Intial Setup
Output lolcat-cmd.gif
Set FontSize 32
Set Width 1200
Set Height 900
# VHS uses bash by default which will open WSL/Git Bash
# we can start cmd/powershell from there ;)
# Make sure initial setup isn't recorded
Hide
Type "cmd.exe"
Enter
# setup cmd prompt
Type "set prompt=$E[34m$g$E[0m "
Enter
# Remove greeting text
Type "cls"
Enter
Sleep 100ms
Show
# Start recording
Type "go run ./examples/lolcat.go"
Sleep 500ms
Enter
Sleep 5s
# Intial Setup
Output lolcat-psh.gif
Set FontSize 32
Set Width 1200
Set Height 900
# VHS uses bash by default which will open WSL/Git Bash
# we can start cmd/powershell from there ;)
# Make sure setup isn't recorded
Hide
Type "powershell.exe"
Enter
# setup prompt
Type 'function prompt { "$([char]27)[34m>$([char]27)[0m " }'
Enter
# Remove greeting text
Type "cls"
Enter
Sleep 100ms
Show
# Start recording
Type "go run ./examples/lolcat.go"
Sleep 500ms
Enter
Sleep 5s
@griimick
Copy link
Author

lolcat-cmd.gif

lolcat-cmd

lolcat-psh.gif

lolcat-psh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment