Skip to content

Instantly share code, notes, and snippets.

@quininer
Created February 19, 2016 15:34
Show Gist options
  • Save quininer/29dfaff6d1779d4f7b37 to your computer and use it in GitHub Desktop.
Save quininer/29dfaff6d1779d4f7b37 to your computer and use it in GitHub Desktop.
working on notty
from sys import argv
from base64 import b64encode
print(
"\x1b_[14;12;8#{}#{}\u009c".format(
b64encode(b"image/png").decode(),
b64encode(open(argv[1], "rb").read()).decode()
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment