org.apache.commons.net.telnet.TerminalTypeOptionHandler Java Examples
The following examples show how to use
org.apache.commons.net.telnet.TerminalTypeOptionHandler.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TelnetTtyTestBase.java From termd with Apache License 2.0 | 5 votes |
@Override protected void assertConnect(String term) throws Exception { client.setOptionHandler(new EchoOptionHandler(false, false, true, true)); if (binary) { client.setOptionHandler(new SimpleOptionHandler(0, false, false, true, true)); } if (term != null) { client.setOptionHandler(new TerminalTypeOptionHandler(term, false, false, true, false)); } client.connect("localhost", 4000); }
Example #2
Source File: TelnetTtyTestBase.java From aesh-readline with Apache License 2.0 | 5 votes |
@Override protected void assertConnect(String term) throws Exception { client.setOptionHandler(new EchoOptionHandler(false, false, true, true)); if (binary) { client.setOptionHandler(new SimpleOptionHandler(0, false, false, true, true)); } if (term != null) { client.setOptionHandler(new TerminalTypeOptionHandler(term, false, false, true, false)); } client.connect("localhost", 4000); }
Example #3
Source File: TelnetTermServerTest.java From vertx-shell with Apache License 2.0 | 5 votes |
@Before public void before() throws Exception { vertx = Vertx.vertx(); client = new TelnetClient(); client.addOptionHandler(new EchoOptionHandler(false, false, true, true)); client.addOptionHandler(new SimpleOptionHandler(0, false, false, true, true)); client.addOptionHandler(new TerminalTypeOptionHandler("xterm-color", false, false, true, false)); }
Example #4
Source File: TelnetTtyTestBase.java From termd with Apache License 2.0 | 5 votes |
@Override protected void assertConnect(String term) throws Exception { client.setOptionHandler(new EchoOptionHandler(false, false, true, true)); if (binary) { client.setOptionHandler(new SimpleOptionHandler(0, false, false, true, true)); } if (term != null) { client.setOptionHandler(new TerminalTypeOptionHandler(term, false, false, true, false)); } client.connect("localhost", 4000); }