Mercurial > 510Connectbot
comparison 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 |
comparison
equal
deleted
inserted
replaced
64:c8f45608d94c | 65:9a6335a203b2 |
---|---|
93 | 93 |
94 final Paint defaultPaint; | 94 final Paint defaultPaint; |
95 | 95 |
96 private Relay relay; | 96 private Relay relay; |
97 | 97 |
98 private final String emulation; | 98 private final String emulation; // aka answerback string, aka terminal type |
99 | 99 |
100 public Bitmap bitmap = null; | 100 public Bitmap bitmap = null; |
101 public vt320 buffer = null; | 101 public vt320 buffer = null; |
102 | 102 |
103 public TerminalView parent = null; | 103 public TerminalView parent = null; |
170 */ | 170 */ |
171 public TerminalBridge(final TerminalManager manager, final HostBean host) throws IOException { | 171 public TerminalBridge(final TerminalManager manager, final HostBean host) 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 emulation = manager.getEmulation(); | 175 emulation = host.gethostEmulation(); |
176 if ((emulation == null) || (emulation.length() == 0)) emulation = manager.getEmulation(); | |
176 // create prompt helper to relay password and hostkey requests up to gui | 177 // create prompt helper to relay password and hostkey requests up to gui |
177 promptHelper = new PromptHelper(this); | 178 promptHelper = new PromptHelper(this); |
178 // create our default paint | 179 // create our default paint |
179 defaultPaint = new Paint(); | 180 defaultPaint = new Paint(); |
180 defaultPaint.setAntiAlias(true); | 181 defaultPaint.setAntiAlias(true); |