Mercurial > 510Connectbot
comparison src/org/tn5250j/framework/tn5250/tnvt.java @ 6:1b9e27659ef7 tn5250
adding tn5250 files
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 22 May 2014 13:10:44 -0700 |
parents | e8d2a24e85c6 |
children | 3b760b39962a |
comparison
equal
deleted
inserted
replaced
5:cbdff98c45ea | 6:1b9e27659ef7 |
---|---|
77 import java.util.Properties; | 77 import java.util.Properties; |
78 import java.util.concurrent.ArrayBlockingQueue; | 78 import java.util.concurrent.ArrayBlockingQueue; |
79 import java.util.concurrent.BlockingQueue; | 79 import java.util.concurrent.BlockingQueue; |
80 | 80 |
81 import javax.net.ssl.SSLSocket; | 81 import javax.net.ssl.SSLSocket; |
82 import javax.swing.SwingUtilities; | |
83 | 82 |
84 import org.tn5250j.Session5250; | 83 import org.tn5250j.Session5250; |
85 import org.tn5250j.TN5250jConstants; | 84 import org.tn5250j.TN5250jConstants; |
86 import org.tn5250j.encoding.CharMappings; | 85 import org.tn5250j.encoding.CharMappings; |
87 import org.tn5250j.encoding.ICodePage; | 86 import org.tn5250j.encoding.ICodePage; |
285 try { | 284 try { |
286 session = s; | 285 session = s; |
287 this.port = port; | 286 this.port = port; |
288 | 287 |
289 try { | 288 try { |
290 SwingUtilities.invokeAndWait(new Runnable() { | 289 screen52.getOIA().setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, |
291 public void run() { | |
292 screen52.getOIA().setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, | |
293 ScreenOIA.OIA_LEVEL_INPUT_INHIBITED,"X - Connecting"); | 290 ScreenOIA.OIA_LEVEL_INPUT_INHIBITED,"X - Connecting"); |
294 } | |
295 }); | |
296 | |
297 } catch (Exception exc) { | 291 } catch (Exception exc) { |
298 log.warn("setStatus(ON) " + exc.getMessage()); | 292 log.warn("setStatus(ON) " + exc.getMessage()); |
299 | |
300 } | 293 } |
301 | 294 |
302 // sock = new Socket(s, port); | 295 // sock = new Socket(s, port); |
303 //smk - For SSL compability | 296 //smk - For SSL compability |
304 SocketConnector sc = new SocketConnector(); | 297 SocketConnector sc = new SocketConnector(); |
339 pthread.setPriority(Thread.NORM_PRIORITY); | 332 pthread.setPriority(Thread.NORM_PRIORITY); |
340 // pthread.setPriority(Thread.NORM_PRIORITY / 2); | 333 // pthread.setPriority(Thread.NORM_PRIORITY / 2); |
341 pthread.start(); | 334 pthread.start(); |
342 | 335 |
343 try { | 336 try { |
344 SwingUtilities.invokeAndWait(new Runnable() { | 337 screen52.getOIA().setInputInhibited(ScreenOIA.INPUTINHIBITED_NOTINHIBITED, |
345 public void run() { | |
346 screen52.getOIA().setInputInhibited(ScreenOIA.INPUTINHIBITED_NOTINHIBITED, | |
347 ScreenOIA.OIA_LEVEL_INPUT_INHIBITED); | 338 ScreenOIA.OIA_LEVEL_INPUT_INHIBITED); |
348 } | |
349 }); | |
350 | |
351 } catch (Exception exc) { | 339 } catch (Exception exc) { |
352 log.warn("setStatus(OFF) " + exc.getMessage()); | 340 log.warn("setStatus(OFF) " + exc.getMessage()); |
353 } | 341 } |
354 | 342 |
355 keepTrucking = true; | 343 keepTrucking = true; |
1135 } | 1123 } |
1136 | 1124 |
1137 if (screen52.isUsingGuiInterface()) | 1125 if (screen52.isUsingGuiInterface()) |
1138 screen52.drawFields(); | 1126 screen52.drawFields(); |
1139 | 1127 |
1140 // if (screen52.screen[0][1].getChar() == '#' && | |
1141 // screen52.screen[0][2].getChar() == '!') | |
1142 // execCmd(); | |
1143 // else { | |
1144 | |
1145 // if (screen52.isHotSpots()) { | |
1146 // screen52.checkHotSpots(); | |
1147 // } | |
1148 | |
1149 try { | 1128 try { |
1150 if (!strpccmd) { | 1129 if (!strpccmd) { |
1151 // SwingUtilities.invokeAndWait( | |
1152 // new Runnable () { | |
1153 // public void run() { | |
1154 // screen52.updateDirty(); | |
1155 // } | |
1156 // } | |
1157 // ); | |
1158 screen52.updateDirty(); | 1130 screen52.updateDirty(); |
1159 // controller.validate(); | |
1160 // log.debug("update dirty"); | |
1161 } else { | 1131 } else { |
1162 strpccmd(); | 1132 strpccmd(); |
1163 } | 1133 } |
1164 } catch (Exception exd) { | 1134 } catch (Exception exd) { |
1165 log.warn(" tnvt.run: " + exd.getMessage()); | 1135 log.warn(" tnvt.run: " + exd.getMessage()); |