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)[源代码]¶ 基类:
object
Implements the NAWS protocol. Add this to a variable on the telnet protocol to set it up.
-
__init__
(protocol)[源代码]¶ initialize NAWS by storing protocol on ourselves and calling the client to see if it supports NAWS.
- 参数
protocol (Protocol) – The active protocol instance.
-
no_naws
(option)[源代码]¶ Called when client is not reporting NAWS. This is the normal operation.
- 参数
option (Option) – Not used.
-