Skip to content

Instantly share code, notes, and snippets.

@saitoha
Created October 29, 2012 14:33
Show Gist options
  • Select an option

  • Save saitoha/3973876 to your computer and use it in GitHub Desktop.

Select an option

Save saitoha/3973876 to your computer and use it in GitHub Desktop.
RLogin(http://nanno.dip.jp/softlib/man/rlogin/) DECDLD/Sixel extension test
width=15;height=24 && for row in {0..25}; do printf '\x1bP;;;$width;;3;$height;{ ' && `printf "printf '\\\\x%x'" $((64+$row))` && curl http://25.media.tumblr.com/tumblr_m3h88lZ7UM1rntypfo1_500.jpg | jpegtopnm | pnmscale --width=$(($width*80)) | pnmcut 0 $(($height*$row)) $(($width*80)) $height | ppmquant 256 | ppmtosixel && echo -en '\x1b\\\x1b( ' && `printf "printf \\\\\\\\x%x" $(($row+64))` && for col in {0..79}; do `printf "printf \\\\\\\\x%x" $(($col+32))`; done && printf '\x1b(B'; done 2> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment