Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/transport/TN5250.java @ 140:4fe73e73d4d7
fill vt320 buffer from tn5250 buffer when font size shrinks
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 20 Jun 2014 19:08:47 -0700 |
parents | b151d3eca95a |
children | 63f0f0267545 |
comparison
equal
deleted
inserted
replaced
139:c2fa8ae31cfa | 140:4fe73e73d4d7 |
---|---|
258 public void connect() { | 258 public void connect() { |
259 screen52 = new Screen5250(); | 259 screen52 = new Screen5250(); |
260 handler = new tnvt(screen52, true, false, bridge, manager); | 260 handler = new tnvt(screen52, true, false, bridge, manager); |
261 screen52.setVT(handler); | 261 screen52.setVT(handler); |
262 screen52.setBuffer(buffer); | 262 screen52.setBuffer(buffer); |
263 bridge.addFontSizeChangedListener(screen52); | |
263 connected = handler.connect(host, homeDirectory, buffer); | 264 connected = handler.connect(host, homeDirectory, buffer); |
264 if (connected) bridge.onConnected(); | 265 if (connected) bridge.onConnected(); |
265 } | 266 } |
266 | 267 |
267 | 268 |
325 * Closes the connection to the terminal. | 326 * Closes the connection to the terminal. |
326 */ | 327 */ |
327 public void close() { | 328 public void close() { |
328 handler.disconnect(); | 329 handler.disconnect(); |
329 connected = false; | 330 connected = false; |
331 bridge.removeFontSizeChangedListener(screen52); | |
330 bridge.dispatchDisconnect(false); | 332 bridge.dispatchDisconnect(false); |
331 } | 333 } |
332 | 334 |
333 | 335 |
334 /** | 336 /** |