More fixes to webclient

This commit is contained in:
Griatch 2015-02-15 10:17:20 +01:00
parent 850c5effaa
commit 950c107ed4
2 changed files with 32 additions and 40 deletions

View file

@ -150,7 +150,7 @@ class WebSocketClient(Protocol, Session):
if "prompt" in kwargs:
self.sendLine("PROMPT" + parse_html(kwargs["prompt"], strip_ansi=nomarkup))
if raw:
self.sendLine(text)
self.sendLine("CMD" + text)
else:
self.sendLine(parse_html(text, strip_ansi=nomarkup))
self.sendLine("CMD" + parse_html(text, strip_ansi=nomarkup))