Record the reported rows from NAWS negotiation
[mudpy.git] / mudpy / telnet.py
index 35fb1c6..73331b9 100644 (file)
@@ -269,6 +269,8 @@ def negotiate_telnet_options(user):
                 if telopt is TELOPT_NAWS:
                     user.columns = (
                         text[position + 3] * 256 + text[position + 4])
+                    user.rows = (
+                        text[position + 5] * 256 + text[position + 6])
                 elif telopt is TELOPT_TTYPE and text[position + 3] is IS:
                     user.ttype = (
                         text[position + 4:end_subnegotiation]).decode("ascii")