Converted encoding setting to use protocol_flags rather than being stored on-session. Also renamed the 256 COLORS TTYPE setting to XTERM256 which is more accurate (and doesn't have a space)

This commit is contained in:
Griatch 2016-03-25 13:01:21 +01:00
parent 1ddfbca7ea
commit 11ecdef7c8
8 changed files with 39 additions and 29 deletions

View file

@ -54,7 +54,6 @@ def text(session, *args, **kwargs):
if text is None:
return
# this is treated as a command input
#text = to_unicode(escape_control_sequences(text), encoding=self.encoding)
# handle the 'idle' command
if text.strip() == _IDLE_COMMAND:
session.update_session_counters(idle=True)
@ -122,7 +121,7 @@ def client_settings(session, *args, **kwargs):
elif key == "ansi":
flags["ANSI"] = bool(value)
elif key == "xterm256":
flags["256 COLORS"] = bool(value)
flags["XTERM256"] = bool(value)
elif key == "mxp":
flags["MXP"] = bool(value)
elif key == "utf-8":