This commit is contained in:
Kovid Goyal 2022-04-26 08:20:24 +05:30
parent 8e98fcf2f6
commit ee94114eb2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -24,7 +24,7 @@ def print_key(raw: bytearray) -> None:
unix += chr(ch) unix += chr(ch)
print(unix + '\t\t', end='') print(unix + '\t\t', end='')
for ch in raw: for ch in raw:
x = chr(ch).encode('ascii') x = chr(ch).encode('utf-8')
print(styled(repr(x)[2:-1], fg='yellow'), end='') print(styled(repr(x)[2:-1], fg='yellow'), end='')
print(end='\r\n', flush=True) print(end='\r\n', flush=True)