comparison src/com/five_ten_sg/connectbot/transport/AbsTransport.java @ 148:69333ca1563c

add ptt button p2 preference
author Carl Byington <carl@five-ten-sg.com>
date Sun, 22 Jun 2014 13:02:36 -0700
parents 1350adb077b1
children 2a7199ad90be
comparison
equal deleted inserted replaced
147:1350adb077b1 148:69333ca1563c
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 53 // monitor injecting a field
54 @Override 54 //@Override
55 public void setField(int l, int c, char [] data) { 55 //public void setField(int l, int c, char [] data)
56 byte[] b = new byte[data.length]; 56 // implementation in the base vt320
57 int i; 57
58 58 // terminal key listener found special key, send notification to monitor
59 for (i = 0; i < b.length; i++) { 59 @Override
60 b[i] = (byte)(data[i] & 0x00ff); 60 public void monitorKey(boolean down) {
61 } 61 if (bridge.monitor != null) bridge.monitor.keyState(down);
62
63 write(b);
64 } 62 }
65 63
66 // terminal key listener sending to the host 64 // terminal key listener sending to the host
67 @Override 65 @Override
68 public void write(byte[] b) { 66 public void write(byte[] b) {