Added RAW and NOMARKUP protocol options to all protocols, settable with @option. Resolves #978.

This commit is contained in:
Griatch 2016-05-24 22:52:20 +02:00
parent 79786b7173
commit f12c754225
6 changed files with 14 additions and 10 deletions

View file

@ -321,8 +321,8 @@ class TelnetProtocol(Telnet, StatefulTelnetProtocol, Session):
flags = self.protocol_flags
xterm256 = options.get("xterm256", flags.get('XTERM256', False) if flags["TTYPE"] else True)
useansi = options.get("ansi", flags.get('ANSI', False) if flags["TTYPE"] else True)
raw = options.get("raw", False)
nomarkup = options.get("nomarkup", not (xterm256 or useansi))
raw = options.get("raw", flags.get("RAW", False))
nomarkup = options.get("nomarkup", flags.get("NOMARKUP", not (xterm256 or useansi)))
echo = options.get("echo", None)
mxp = options.get("mxp", flags.get("MXP", False))
screenreader = options.get("screenreader", flags.get("SCREENREADER", False))