diff src/com/five_ten_sg/connectbot/service/TerminalBridge.java @ 94:e3b83c4f02f1

remove 5250 configuration
author Carl Byington <carl@five-ten-sg.com>
date Mon, 16 Jun 2014 17:14:04 -0700
parents 3a58bc86cd6f
children e1c43d50f9d8
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalBridge.java	Mon Jun 16 16:50:13 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/service/TerminalBridge.java	Mon Jun 16 17:14:04 2014 -0700
@@ -86,8 +86,8 @@
     public int defaultBg = HostDatabase.DEFAULT_BG_COLOR;
 
     protected final TerminalManager manager;
-
-    public HostBean host;
+    public    final HostBean host;
+    public    final String   homeDirectory;
 
     AbsTransport transport;
 
@@ -168,10 +168,11 @@
     /**
      * Create new terminal bridge with following parameters.
      */
-    public TerminalBridge(final TerminalManager manager, final HostBean host) throws IOException {
+    public TerminalBridge(final TerminalManager manager, final HostBean host, final String homeDirectory) throws IOException {
         float hostFontSize;
-        this.manager = manager;
-        this.host = host;
+        this.manager       = manager;
+        this.host          = host;
+        this.homeDirectory = homeDirectory;
         emulation = host.getHostEmulation();
         if ((emulation == null) || (emulation.length() == 0)) emulation = manager.getEmulation();
         // create prompt helper to relay password and hostkey requests up to gui
@@ -211,7 +212,7 @@
      */
     protected void startConnection() {
         transport   = TransportFactory.getTransport(host.getProtocol());
-        transport.setLinks(manager, this, TerminalView.homeDirectory, host, emulation);
+        transport.setLinks(manager, this, homeDirectory, host, emulation);
         buffer      = transport.getTransportBuffer();
         keyListener = transport.getTerminalKeyListener();