Skip to content

Instantly share code, notes, and snippets.

@jdmichaud
Created January 29, 2020 12:55
Show Gist options
  • Save jdmichaud/bd62aaf43f1816d9226307b51be374aa to your computer and use it in GitHub Desktop.
Save jdmichaud/bd62aaf43f1816d9226307b51be374aa to your computer and use it in GitHub Desktop.
Display graphics in xterm

Use the Sixel protocol: https://en.wikipedia.org/wiki/Sixel.

xterm -ti 340
sudo apt install libsixel-bin
curl -sL https://raw.githubusercontent.com/saitoha/libsixel/data/data/libsixel-1.png | img2sixel

Note that xterm shall be compiled with --enable-sixel option and shall be launched with the option -ti 340. Limited to 16 colors.

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