comparison src/com/five_ten_sg/connectbot/transport/AbsTransport.java @ 69:294435151b0c tn5250

use 5250 encryption config entry
author Carl Byington <carl@five-ten-sg.com>
date Fri, 13 Jun 2014 19:06:01 -0700
parents a3fd10a8c0de
children 33eb63352be5
comparison
equal deleted inserted replaced
68:cc7e3588a0f3 69:294435151b0c
46 class vt320Default extends vt320 { 46 class vt320Default extends vt320 {
47 @Override 47 @Override
48 public void debug(String s) { 48 public void debug(String s) {
49 Log.d(TAG, s); 49 Log.d(TAG, s);
50 } 50 }
51
52 // terminal key listener sending to the host
51 @Override 53 @Override
52 public void write(byte[] b) { 54 public void write(byte[] b) {
53 try { 55 try {
54 if (bridge.monitor != null) bridge.monitor.hostData(b); 56 if (bridge.monitor != null) bridge.monitor.hostData(b);
55 57
68 } 70 }
69 catch (IOException e) { 71 catch (IOException e) {
70 Log.e(TAG, "Problem writing outgoing data in vt320() thread", e); 72 Log.e(TAG, "Problem writing outgoing data in vt320() thread", e);
71 } 73 }
72 } 74 }
75
73 // We don't use telnet sequences. 76 // We don't use telnet sequences.
74 @Override 77 @Override
75 public void sendTelnetCommand(byte cmd) { 78 public void sendTelnetCommand(byte cmd) {
76 } 79 }
77 // We don't want remote to resize our window. 80 // We don't want remote to resize our window.
78 @Override 81 @Override
79 public void setWindowSize(int c, int r) { 82 public void setWindowSize(int c, int r) {
80 }
81 // test for changed screen contents
82 @Override
83 public void testChanged() {
84 if (bridge.monitor != null) bridge.monitor.testChanged();
85 } 83 }
86 // play beep noise 84 // play beep noise
87 @Override 85 @Override
88 public void beep() { 86 public void beep() {
89 if ((bridge.parent != null) && (bridge.parent.isShown())) 87 if ((bridge.parent != null) && (bridge.parent.isShown()))
90 manager.playBeep(); 88 manager.playBeep();
91 else 89 else
92 manager.sendActivityNotification(host); 90 manager.sendActivityNotification(host);
93 } 91 }
92
93 // test for changed screen contents
94 @Override
95 public void testChanged() {
96 if (bridge.monitor != null) bridge.monitor.testChanged();
97 }
98 // relay socket writing to the screen
94 // bridge.monitor placement of new characters 99 // bridge.monitor placement of new characters
95 @Override 100 @Override
96 public void putChar(int c, int l, char ch, int attributes) { 101 public void putChar(int c, int l, char ch, int attributes) {
97 if (bridge.monitor != null) bridge.monitor.screenChanged(l, c); 102 if (bridge.monitor != null) bridge.monitor.screenChanged(l, c);
98 103
129 public void setCursorPosition(int c, int l) { 134 public void setCursorPosition(int c, int l) {
130 if (bridge.monitor != null) bridge.monitor.cursorMove(l, c); 135 if (bridge.monitor != null) bridge.monitor.cursorMove(l, c);
131 136
132 super.setCursorPosition(c, l); 137 super.setCursorPosition(c, l);
133 } 138 }
139
140 // monitor setField()
141
134 }; 142 };
135 143
136 144
137 public AbsTransport() {} 145 public AbsTransport() {}
138 146