Created
February 19, 2016 15:34
-
-
Save quininer/29dfaff6d1779d4f7b37 to your computer and use it in GitHub Desktop.
working on notty
This file contains 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
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