Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/service/TerminalBridge.java @ 45:80dcebe51af2 tn5250
start tn5250 integration
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 11 Jun 2014 09:54:18 -0700 |
parents | 7ac846a07ed4 |
children | a3fd10a8c0de |
comparison
equal
deleted
inserted
replaced
44:959ebe0247b5 | 45:80dcebe51af2 |
---|---|
256 /** | 256 /** |
257 * @return charset in use by bridge | 257 * @return charset in use by bridge |
258 */ | 258 */ |
259 public Charset getCharset() { | 259 public Charset getCharset() { |
260 if (relay != null) return relay.getCharset(); | 260 if (relay != null) return relay.getCharset(); |
261 | 261 return keyListener.getCharset(); |
262 } | 262 } |
263 | 263 |
264 /** | 264 /** |
265 * Sets the encoding used by the terminal. If the connection is live, | 265 * Sets the encoding used by the terminal. If the connection is live, |
266 * then the character set is changed for the next read. | 266 * then the character set is changed for the next read. |
267 * @param encoding the canonical name of the character encoding | 267 * @param encoding the canonical name of the character encoding |
268 */ | 268 */ |
269 public void setCharset(String encoding) { | 269 public void setCharset(String encoding) { |
270 if (relay != null) relay.setCharset(encoding); | 270 if (relay != null) relay.setCharset(encoding); |
271 | |
272 keyListener.setCharset(encoding); | 271 keyListener.setCharset(encoding); |
273 } | 272 } |
274 | 273 |
275 /** | 274 /** |
276 * Convenience method for writing a line into the underlying MUD buffer. | 275 * Convenience method for writing a line into the underlying MUD buffer. |