This commit is contained in:
Lorenzo Di Fuccia 2019-06-14 07:39:45 +02:00 • committed by GitHub
commit 1c9ab2f097
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,7 @@ class Display:
self.logger.info(str(message)) # TODO: "utf-8", "replace"
def out(self, put):
sys.stdout.write("\r" + " " * self.columns + "\r" + str(put) + "\n") # TODO: "utf-8", "replace"
sys.stdout.write("\r" + " " * self.columns + "\r" + str(put, "utf-8", "replace") + "\n")
def info(self, message, state=False):
self.log(message)