Created
June 1, 2021 09:14
-
-
Save db48x/9b9c98154b174528b4b66d7f051453be to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
tput sc | |
# first print a red square | |
printf '\eP;1q' | |
printf '"1;1;60;60' | |
for N in {1..10} | |
do | |
printf "#2!60~-" | |
done | |
printf '\e\\' | |
tput rc | |
# then cover it up with cyan lines, flagged to first delete all previous images | |
printf '\eP100;1q' | |
printf '"1;1;60;60' | |
for N in {1..10} | |
do | |
printf "#5!60w-" | |
done | |
printf '\e\\' # End Sixel | |
# If you see either the red square, or the red square behind the cyan | |
# lines, then the test has failed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment