Obtain terminal type (RFC 1091)
authorJeremy Stanley <fungi@yuggoth.org>
Sun, 12 Apr 2020 20:17:57 +0000 (20:17 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Sun, 12 Apr 2020 20:17:57 +0000 (20:17 +0000)
commit7aa0e226d74b56f955cb328d5e7f03d7d3d32efb
tree98c1385038ae97aa1d28179999b505079515c26e
parent0f8e071859e2325f62bd19d989ab5ac3aa8a075d
Obtain terminal type (RFC 1091)

Implement rudimentary support for determining the terminal type
reported by RFC 1091 TTYPE compatible clients, and store any initial
value returned in the User.ttype attribute. This implementation does
not iterate over SEND TTYPE commands until UNKNOWN is returned, it
only takes the first value returned and assumes this is the default
terminal type for the user's current connection.
mudpy/misc.py
mudpy/telnet.py