X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Ftelnet.py;h=73331b9ae46654c7dd05709ca57c97fa27fc8e1c;hp=35fb1c697290f7b86e97cbca155fd25b7aa69069;hb=8b0085791954dc96a909d49d3611c049a96b5c21;hpb=7aa0e226d74b56f955cb328d5e7f03d7d3d32efb diff --git a/mudpy/telnet.py b/mudpy/telnet.py index 35fb1c6..73331b9 100644 --- a/mudpy/telnet.py +++ b/mudpy/telnet.py @@ -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")