Last active
January 17, 2023 00:54
-
-
Save ninmonkey/aca12e60a01034f1b3b70f956e79c224 to your computer and use it in GitHub Desktop.
wt star wars
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
| function playTerm { | |
| param( | |
| [string]$InputText ='' ) | |
| $InputText -replace '␛', [char]0x1b | |
| # Or if Pwsh | |
| # $InputText -replace '␛', "`e" | |
| } | |
| $Music = @{} | |
| $Music.March = '␛[3;20;7;7;7,~␛[3;15;3,~␛[3;5;10,~␛[3;20;7,~␛[3;15;3,~␛[3;5;10,~␛[3;40;7,~␛[3;20;14;14;14,~␛[3;15;15,~␛[3;5;10,~␛[3;20;6,~␛[3;15;3,~␛[3;5;10,~␛[3;40;7,~␛[3;20;19;7;19,~␛[3;10;18;17,~␛[3;5;16;15,~␛[3;10;16;0;8,~␛[3;20;13,~␛[3;10;12;11,~␛[3;5;10;9,~␛[3;10;10;0;3,~␛[3;20;6,~␛[3;15;3,~␛[3;5;10,~␛[3;20;7,~␛[3;15;3,~␛[3;5;10,~␛[3;40;7,~' | |
| $Music.FastFast = '␛[3;2;7;7;7,~␛[3;2;3,~␛[3;1;10,~␛[3;2;7,~␛[3;2;3,~␛[3;1;10,~␛[3;4;7,~␛[3;2;14;14;14,~␛[3;2;15,~␛[3;1;10,~␛[3;2;6,~␛[3;2;3,~␛[3;1;10,~␛[3;4;7,~␛[3;2;19;7;19,~␛[3;1;18;17,~␛[3;1;16;15,~␛[3;1;16;0;8,~␛[3;2;13,~␛[3;1;12;11,~␛[3;1;10;9,~␛[3;1;10;0;3,~␛[3;2;6,~␛[3;2;3,~␛[3;1;10,~␛[3;2;7,~␛[3;2;3,~␛[3;1;10,~␛[3;4;7,~' | |
| # Normal speed. commented out because it's slow. | |
| # playTerm $Music.March | |
| # This reminds me of DOS games, like kings quest when you die | |
| playTerm $Music.FastFast | |
| # see more: https://github.com/microsoft/terminal/issues/8687 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment