on_dont Event
Fired when a Telnet DONT OPTION command comes from the Telnet server.
Syntax
class TelnetDontEventParams(object): @property def option_code() -> int: ... # In class Telnet: @property def on_dont() -> Callable[[TelnetDontEventParams], None]: ... @on_dont.setter def on_dont(event_hook: Callable[[TelnetDontEventParams], None]) -> None: ...
Remarks
The OptionCode parameter identifies the option code. For a list of option codes and their descriptions, please look at the Telnet RFCs. The following are a few examples:
0 (TRANSMIT-BINARY) | Enables or disables binary (8 bit) transmission. |
1 (ECHO) | Telnet ECHO option. Specifies whether bytes sent should be echoed or not. |
3 (SUPPRESS-GO-AHEAD) | Used to enable or disable transmission of the Telnet GO_AHEAD command. |
24 (TERMINAL-TYPE) | Allows or disallows terminal type negotiation. |
31 (NAWS) | Allows or disallows window size negotiation. |