X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fmisc.py;h=0543aa1f275a3bb2c7c5fbca0e3e11d08597721f;hp=d753559b47107c200f91018965501d945584f0cc;hb=7aa0e226d74b56f955cb328d5e7f03d7d3d32efb;hpb=0f8e071859e2325f62bd19d989ab5ac3aa8a075d diff --git a/mudpy/misc.py b/mudpy/misc.py index d753559..0543aa1 100644 --- a/mudpy/misc.py +++ b/mudpy/misc.py @@ -503,6 +503,7 @@ class User: self.password_tries = 0 self.state = "telopt_negotiation" self.telopts = {} + self.ttype = None self.universe = universe def quit(self): @@ -805,6 +806,13 @@ class User: else: self.check_idle() + # ask the client for their current terminal type (RFC 1091); it's None + # if it's not been initialized, the empty string if it has but the + # output was indeterminate, "UNKNOWN" if the client specified it has no + # terminal types to supply + if self.ttype is None: + mudpy.telnet.request_ttype(self) + # if output is paused, decrement the counter if self.state == "telopt_negotiation": if self.negotiation_pause: