diff src/com/five_ten_sg/connectbot/service/TerminalBridge.java @ 65:9a6335a203b2 tn5250

allow host override terminal type
author Carl Byington <carl@five-ten-sg.com>
date Fri, 13 Jun 2014 16:14:01 -0700
parents 228273d69ca4
children cb99bc2964c5
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalBridge.java	Fri Jun 13 16:00:12 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/service/TerminalBridge.java	Fri Jun 13 16:14:01 2014 -0700
@@ -95,7 +95,7 @@
 
     private Relay relay;
 
-    private final String emulation;
+    private final String emulation;     // aka answerback string, aka terminal type
 
     public Bitmap bitmap = null;
     public vt320  buffer = null;
@@ -172,7 +172,8 @@
         float hostFontSize;
         this.manager = manager;
         this.host = host;
-        emulation = manager.getEmulation();
+        emulation = host.gethostEmulation();
+        if ((emulation == null) || (emulation.length() == 0)) emulation = manager.getEmulation();
         // create prompt helper to relay password and hostkey requests up to gui
         promptHelper = new PromptHelper(this);
         // create our default paint