diff 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
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/transport/TN5250.java	Fri Jun 20 18:57:11 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/transport/TN5250.java	Fri Jun 20 19:08:47 2014 -0700
@@ -260,6 +260,7 @@
         handler   = new tnvt(screen52, true, false, bridge, manager);
         screen52.setVT(handler);
         screen52.setBuffer(buffer);
+        bridge.addFontSizeChangedListener(screen52);
         connected = handler.connect(host, homeDirectory, buffer);
         if (connected) bridge.onConnected();
     }
@@ -327,6 +328,7 @@
     public void close() {
         handler.disconnect();
         connected = false;
+        bridge.removeFontSizeChangedListener(screen52);
         bridge.dispatchDisconnect(false);
     }