Made sure to kill color at the end of msg:es. This makes telnet/ssh consistent with webclient output.

This commit is contained in:
Griatch 2012-10-24 13:56:45 +02:00
parent 16d49e61d3
commit e534d5f9a0
2 changed files with 3 additions and 2 deletions

View file

@ -192,7 +192,7 @@ class SshProtocol(Manhole, session.Session):
if raw:
self.lineSend(string)
else:
self.lineSend(ansi.parse_ansi(string, strip_ansi=nomarkup))
self.lineSend(ansi.parse_ansi(string.strip("{r") + "{r", strip_ansi=nomarkup))
class ExtraInfoAuthServer(SSHUserAuthServer):