Module com.googlecode.lanterna
Class TelnetTerminal.NegotiationState
- java.lang.Object
-
- com.googlecode.lanterna.terminal.ansi.TelnetTerminal.NegotiationState
-
- Enclosing class:
- TelnetTerminal
public static class TelnetTerminal.NegotiationState extends java.lang.Object
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
Fields Modifier and Type Field Description private boolean
clientEcho
private boolean
clientLineMode0
private boolean
clientResizeNotification
private boolean
extendedAscii
private boolean
suppressGoAhead
-
Constructor Summary
Constructors Constructor Description NegotiationState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isClientEcho()
Is the telnet client echo mode turned on (client is echoing characters locally)boolean
isClientLineMode0()
Is the telnet client line mode 0 turned on (client sends character by character instead of line by line)boolean
isClientResizeNotification()
Is the telnet client resize notification turned on (client notifies server when the terminal window has changed size)boolean
isExtendedAscii()
Is the telnet client extended ascii turned onboolean
isSuppressGoAhead()
Is the telnet client suppress go-ahead turned onprivate void
onUnsupportedRequestCommand(boolean askedToDo, byte value)
private void
onUnsupportedStateCommand(boolean enabling, byte value)
private void
onUnsupportedSubnegotiation(byte option, byte[] additionalData)
private static java.util.List<java.lang.String>
toList(byte[] array)
-
-
-
Method Detail
-
isClientEcho
public boolean isClientEcho()
Is the telnet client echo mode turned on (client is echoing characters locally)- Returns:
true
if 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:
true
if 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:
true
if client resize notification is enabled
-
isSuppressGoAhead
public boolean isSuppressGoAhead()
Is the telnet client suppress go-ahead turned on- Returns:
true
if client suppress go-ahead is enabled
-
isExtendedAscii
public boolean isExtendedAscii()
Is the telnet client extended ascii turned on- Returns:
true
if 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
private static java.util.List<java.lang.String> toList(byte[] array)
-
-