Skip to content

Instantly share code, notes, and snippets.

@db48x
Created June 1, 2021 09:14
Show Gist options
  • Save db48x/9b9c98154b174528b4b66d7f051453be to your computer and use it in GitHub Desktop.
Save db48x/9b9c98154b174528b4b66d7f051453be to your computer and use it in GitHub Desktop.
#!/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