X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=lib%2Fmudpy%2Fmisc.py;h=b39610be5b177f959af9509ef6732974a981f9b9;hp=2fe8e6fc851469423482ccc64a9cbeb72187f6d6;hb=e27b1c4b71ab9cad6b2e41d7ff2cf41c3d8b8d3e;hpb=67faabf76655719a9e4d6a15560afb590dd21f8b diff --git a/lib/mudpy/misc.py b/lib/mudpy/misc.py index 2fe8e6f..b39610b 100644 --- a/lib/mudpy/misc.py +++ b/lib/mudpy/misc.py @@ -800,12 +800,12 @@ class User: # and the ansi escape to return to normal text if not just_prompt and prepend_padding: if not self.output_queue \ - or not self.output_queue[-1].endswith("\r\n"): + or not self.output_queue[-1].endswith(b"\r\n"): output = "$(eol)" + output elif not self.output_queue[-1].endswith( - "\r\n\x1b[0m\r\n" + b"\r\n\x1b[0m\r\n" ) and not self.output_queue[-1].endswith( - "\r\n\r\n" + b"\r\n\r\n" ): output = "$(eol)" + output output += eol + chr(27) + "[0m"