Mercurial > 510Connectbot
comparison 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 |
comparison
equal
deleted
inserted
replaced
93:3a58bc86cd6f | 94:e3b83c4f02f1 |
---|---|
84 | 84 |
85 public int defaultFg = HostDatabase.DEFAULT_FG_COLOR; | 85 public int defaultFg = HostDatabase.DEFAULT_FG_COLOR; |
86 public int defaultBg = HostDatabase.DEFAULT_BG_COLOR; | 86 public int defaultBg = HostDatabase.DEFAULT_BG_COLOR; |
87 | 87 |
88 protected final TerminalManager manager; | 88 protected final TerminalManager manager; |
89 | 89 public final HostBean host; |
90 public HostBean host; | 90 public final String homeDirectory; |
91 | 91 |
92 AbsTransport transport; | 92 AbsTransport transport; |
93 | 93 |
94 final Paint defaultPaint; | 94 final Paint defaultPaint; |
95 | 95 |
166 } | 166 } |
167 | 167 |
168 /** | 168 /** |
169 * Create new terminal bridge with following parameters. | 169 * Create new terminal bridge with following parameters. |
170 */ | 170 */ |
171 public TerminalBridge(final TerminalManager manager, final HostBean host) throws IOException { | 171 public TerminalBridge(final TerminalManager manager, final HostBean host, final String homeDirectory) throws IOException { |
172 float hostFontSize; | 172 float hostFontSize; |
173 this.manager = manager; | 173 this.manager = manager; |
174 this.host = host; | 174 this.host = host; |
175 this.homeDirectory = homeDirectory; | |
175 emulation = host.getHostEmulation(); | 176 emulation = host.getHostEmulation(); |
176 if ((emulation == null) || (emulation.length() == 0)) emulation = manager.getEmulation(); | 177 if ((emulation == null) || (emulation.length() == 0)) emulation = manager.getEmulation(); |
177 // create prompt helper to relay password and hostkey requests up to gui | 178 // create prompt helper to relay password and hostkey requests up to gui |
178 promptHelper = new PromptHelper(this); | 179 promptHelper = new PromptHelper(this); |
179 // create our default paint | 180 // create our default paint |
209 /** | 210 /** |
210 * Spawn thread to open connection and start login process. | 211 * Spawn thread to open connection and start login process. |
211 */ | 212 */ |
212 protected void startConnection() { | 213 protected void startConnection() { |
213 transport = TransportFactory.getTransport(host.getProtocol()); | 214 transport = TransportFactory.getTransport(host.getProtocol()); |
214 transport.setLinks(manager, this, TerminalView.homeDirectory, host, emulation); | 215 transport.setLinks(manager, this, homeDirectory, host, emulation); |
215 buffer = transport.getTransportBuffer(); | 216 buffer = transport.getTransportBuffer(); |
216 keyListener = transport.getTerminalKeyListener(); | 217 keyListener = transport.getTerminalKeyListener(); |
217 | 218 |
218 String monitor_init = host.getMonitor(); | 219 String monitor_init = host.getMonitor(); |
219 if ((monitor_init != null) && (monitor_init.length() > 0)) { | 220 if ((monitor_init != null) && (monitor_init.length() > 0)) { |