Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/transport/AbsTransport.java @ 103:1a34365fab9b
merge
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 17 Jun 2014 22:01:53 -0700 |
parents | 6802f1cd1add |
children | 77ac18bc1b2f |
comparison
equal
deleted
inserted
replaced
97:586b2eedb0d5 | 103:1a34365fab9b |
---|---|
48 @Override | 48 @Override |
49 public void debug(String s) { | 49 public void debug(String s) { |
50 Log.d(TAG, s); | 50 Log.d(TAG, s); |
51 } | 51 } |
52 | 52 |
53 // monitor injecting a field | |
54 @Override | |
55 public void setField(int l, int c, char [] data) { | |
56 byte[] b = new byte[data.length]; | |
57 int i; | |
58 for (i=0; i<b.length; i++) { | |
59 b[i] = (byte)(data[i] & 0x00ff); | |
60 } | |
61 write(b); | |
62 } | |
63 | |
53 // terminal key listener sending to the host | 64 // terminal key listener sending to the host |
54 @Override | 65 @Override |
55 public void write(byte[] b) { | 66 public void write(byte[] b) { |
56 try { | 67 try { |
57 if (bridge.monitor != null) bridge.monitor.hostData(b); | 68 if (bridge.monitor != null) bridge.monitor.hostData(b); |