In preparation for future pagination support, get the rows included
in NAWS responses and record that as an integer in the User.rows
attribute, similar to the existing User.columns value used for line
wrapping.
self.output_queue = []
self.partial_input = b""
self.password_tries = 0
+ self.rows = 23
self.state = "telopt_negotiation"
self.telopts = {}
self.ttype = None
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")