Made also the prompt parsed for MXP tags and added html parsing for the prompt in the webclient. See #599.

This commit is contained in:
Griatch 2014-10-20 22:38:06 +02:00
parent 3eb347a076
commit b8dfce9cef
2 changed files with 4 additions and 2 deletions

View file

@ -258,6 +258,8 @@ class TelnetProtocol(Telnet, StatefulTelnetProtocol, Session):
if prompt:
# Send prompt separately
prompt = ansi.parse_ansi(_RE_N.sub("", prompt) + "{n", strip_ansi=nomarkup, xterm256=xterm256)
if mxp:
prompt = mxp_parse(prompt)
prompt = prompt.replace(IAC, IAC + IAC).replace('\n', '\r\n')
prompt += IAC + GA
self.transport.write(mccp_compress(self, prompt))