Extend functionality for all bytes < 0x20

This commit is contained in:
Juhani Haverinen 2014-03-18 18:10:02 +02:00
parent 86b40e016a
commit d7290ca7b0
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class Loghandler(threading.Thread):
while True:
s=self.inpc.recv()
if s=='QUIT': break
sys.stdout.write(s.replace('\x1b','^['))
sys.stdout.write(''.join([i if ord(i)>=32 or i=='\n' else '^'+chr(ord(i)+64) for i in s]))
class Threadwrapper(threading.Thread):
def __init__(self,func,arg):