mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 23:36:30 +01:00
Made sure to kill color at the end of msg:es. This makes telnet/ssh consistent with webclient output.
This commit is contained in:
parent
16d49e61d3
commit
e534d5f9a0
2 changed files with 3 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -162,4 +162,5 @@ class TelnetProtocol(Telnet, StatefulTelnetProtocol, Session):
|
|||
if raw:
|
||||
self.sendLine(string)
|
||||
else:
|
||||
self.sendLine(ansi.parse_ansi(string, strip_ansi=nomarkup, xterm256=ttype.get('256 COLORS')))
|
||||
# we need to make sure to kill the color at the end in order to match the webclient output.
|
||||
self.sendLine(ansi.parse_ansi(string.rstrip("{n") + "{n", strip_ansi=nomarkup, xterm256=ttype.get('256 COLORS')))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue