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
#!/usr/bin/env python3 | |
import sys | |
# I've been asked "Why use iso8859-1 encoding" in terminal applications, | |
for n in range(256): | |
# all possible 8-bit keyboard input as bytes | |
byte = bytes([n]) | |
# assert 8-bit keyboard input value is unmodified by iso8859-1 |