comparison src/com/five_ten_sg/connectbot/transport/TN5250.java @ 30:d738f6b876fe tn5250

start tn5250 integration
author Carl Byington <carl@five-ten-sg.com>
date Tue, 03 Jun 2014 16:05:21 -0700
parents 017eeed8332c
children 139394237973
comparison
equal deleted inserted replaced
29:017eeed8332c 30:d738f6b876fe
126 * session is started, must call back to {@link TerminalBridge#onConnected()}. 126 * session is started, must call back to {@link TerminalBridge#onConnected()}.
127 * After that call a session may be opened. 127 * After that call a session may be opened.
128 */ 128 */
129 @Override 129 @Override
130 public void connect() { 130 public void connect() {
131 screen52 = new Screen5250; 131 screen52 = new Screen5250();
132 handler = new tnvt(screen52, true, false, bridge, manager); 132 handler = new tnvt(screen52, true, false, bridge, manager);
133 connected = handler.connect(host.getHostname(), host.getPort()); 133 connected = handler.connect(host.getHostname(), host.getPort());
134 if (connected) bridge.onConnected(); 134 if (connected) bridge.onConnected();
135 } 135 }
136 136
420 return false; 420 return false;
421 } 421 }
422 422
423 423
424 @Override 424 @Override
425 public TerminalKeyListener(TerminalManager manager, TerminalBridge bridge, vt320 buffer, String encoding) { 425 public TerminalKeyListener getTerminalKeyListener(TerminalManager manager, TerminalBridge bridge, vt320 buffer, String encoding) {
426 return new TerminalKeyListener(manager, bridge, buffer, encoding); 426 return new TerminalKeyListener(manager, bridge, buffer, encoding);
427 } 427 }
428 428
429 } 429 }