evennia.server.portal.naws¶
NAWS - Negotiate About Window Size
This implements the NAWS telnet option as per https://www.ietf.org/rfc/rfc1073.txt
NAWS allows telnet clients to report their current window size to the client and update it when the size changes
- class evennia.server.portal.naws.Naws(protocol)[source]¶
Bases:
objectImplements the NAWS protocol. Add this to a variable on the telnet protocol to set it up.
- __init__(protocol)[source]¶
initialize NAWS by storing protocol on ourselves and calling the client to see if it supports NAWS.
- Parameters:
protocol (Protocol) – The active protocol instance.
- no_naws(option)[source]¶
Called when client is not reporting NAWS. This is the normal operation.
- Parameters:
option (Option) – Not used.