Make FORCEDENDLINE default for clients we don't know for sure don't want a cr+nl at the end of the telnet line
This commit is contained in:
parent
2c78760a11
commit
a74fd55c7b
1 changed files with 3 additions and 7 deletions
|
|
@ -100,10 +100,6 @@ class Ttype(object):
|
||||||
# just start the request chain
|
# just start the request chain
|
||||||
self.protocol.requestNegotiation(TTYPE, SEND)
|
self.protocol.requestNegotiation(TTYPE, SEND)
|
||||||
|
|
||||||
# for clients that support TTYPE we assume this is not needed
|
|
||||||
# (they can set it manually if so)
|
|
||||||
self.protocol.protocol_flags["FORCEDENDLINE"] = False
|
|
||||||
|
|
||||||
elif self.ttype_step == 1:
|
elif self.ttype_step == 1:
|
||||||
# this is supposed to be the name of the client/terminal.
|
# this is supposed to be the name of the client/terminal.
|
||||||
# For clients not supporting the extended TTYPE
|
# For clients not supporting the extended TTYPE
|
||||||
|
|
@ -117,10 +113,10 @@ class Ttype(object):
|
||||||
if cupper.startswith("MUDLET"):
|
if cupper.startswith("MUDLET"):
|
||||||
# supports xterm256 stably since 1.1 (2010?)
|
# supports xterm256 stably since 1.1 (2010?)
|
||||||
xterm256 = cupper.split("MUDLET", 1)[1].strip() >= "1.1"
|
xterm256 = cupper.split("MUDLET", 1)[1].strip() >= "1.1"
|
||||||
|
self.protocol.protocol_flags["FORCEDENDLINE"] = False
|
||||||
|
|
||||||
if cupper.startswith("TINYFUGUE"):
|
if cupper.startswith("TINTIN++"):
|
||||||
# tinyfugue expects _GA + endline
|
self.protocol.protocol_flags["FORCEDENDLINE"] = False
|
||||||
self.protocol.protocol_flags["FORCEDENDLINE"] = True
|
|
||||||
|
|
||||||
if (cupper.startswith("XTERM") or
|
if (cupper.startswith("XTERM") or
|
||||||
cupper.endswith("-256COLOR") or
|
cupper.endswith("-256COLOR") or
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue