Class TelnetTerminal.NegotiationState
java.lang.Object
com.googlecode.lanterna.terminal.ansi.TelnetTerminal.NegotiationState
- Enclosing class:
TelnetTerminal
This class contains some of the various states that the Telnet negotiation protocol defines. Lanterna doesn't
support all of them but the more common ones are represented.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate booleanprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs the telnet client echo mode turned on (client is echoing characters locally)booleanIs the telnet client line mode 0 turned on (client sends character by character instead of line by line)booleanIs the telnet client resize notification turned on (client notifies server when the terminal window has changed size)booleanIs the telnet client extended ascii turned onbooleanIs the telnet client suppress go-ahead turned onprivate voidonUnsupportedRequestCommand(boolean askedToDo, byte value) private voidonUnsupportedStateCommand(boolean enabling, byte value) private voidonUnsupportedSubnegotiation(byte option, byte[] additionalData) toList(byte[] array)
-
Field Details
-
clientEcho
private boolean clientEcho -
clientLineMode0
private boolean clientLineMode0 -
clientResizeNotification
private boolean clientResizeNotification -
suppressGoAhead
private boolean suppressGoAhead -
extendedAscii
private boolean extendedAscii
-
-
Constructor Details
-
NegotiationState
NegotiationState()
-
-
Method Details
-
isClientEcho
public boolean isClientEcho()Is the telnet client echo mode turned on (client is echoing characters locally)- Returns:
trueif client echo is enabled
-
isClientLineMode0
public boolean isClientLineMode0()Is the telnet client line mode 0 turned on (client sends character by character instead of line by line)- Returns:
trueif client line mode 0 is enabled
-
isClientResizeNotification
public boolean isClientResizeNotification()Is the telnet client resize notification turned on (client notifies server when the terminal window has changed size)- Returns:
trueif client resize notification is enabled
-
isSuppressGoAhead
public boolean isSuppressGoAhead()Is the telnet client suppress go-ahead turned on- Returns:
trueif client suppress go-ahead is enabled
-
isExtendedAscii
public boolean isExtendedAscii()Is the telnet client extended ascii turned on- Returns:
trueif client extended ascii is enabled
-
onUnsupportedStateCommand
private void onUnsupportedStateCommand(boolean enabling, byte value) -
onUnsupportedRequestCommand
private void onUnsupportedRequestCommand(boolean askedToDo, byte value) -
onUnsupportedSubnegotiation
private void onUnsupportedSubnegotiation(byte option, byte[] additionalData) -
toList
-