Created
October 28, 2022 11:03
-
-
Save griimick/d3d47c7f890388d7ab018cfb598b9102 to your computer and use it in GitHub Desktop.
VHS Tapes for box-cli examples running in Windows outside WSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lolcat-cmd.gif
lolcat-psh.gif