Fix to color normalization end tag in telnet. Resolves #1306.
This commit is contained in:
parent
0fb7d13d63
commit
bc1f5f0fc9
1 changed files with 1 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ class TelnetProtocol(Telnet, StatefulTelnetProtocol, Session):
|
||||||
else:
|
else:
|
||||||
# we need to make sure to kill the color at the end in order
|
# we need to make sure to kill the color at the end in order
|
||||||
# to match the webclient output.
|
# to match the webclient output.
|
||||||
linetosend = ansi.parse_ansi(_RE_N.sub("", text) + ("|n" if text[-1] != "|" else "||n"),
|
linetosend = ansi.parse_ansi(_RE_N.sub("", text) + ("||n" if text.endswith("|") else "|n"),
|
||||||
strip_ansi=nocolor, xterm256=xterm256, mxp=mxp)
|
strip_ansi=nocolor, xterm256=xterm256, mxp=mxp)
|
||||||
if mxp:
|
if mxp:
|
||||||
linetosend = mxp_parse(linetosend)
|
linetosend = mxp_parse(linetosend)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue