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:
parent
3eb347a076
commit
b8dfce9cef
2 changed files with 4 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue