# make a local copy to play with
text = user.partial_input
- # start at the begining of the input
+ # start at the beginning of the input
position = 0
# as long as we haven't checked it all
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")
log("Ignored unknown command %s from" % command, user)
text = text[:position] + text[position + 2:]
- # and this means we got the begining of an IAC
+ # and this means we got the beginning of an IAC
else:
position += 1