Commit cabab1ef0f28010ae5d6de84df39b677c04a13a3
1 parent
66767534
Exists in
master
and in
5 other branches
Incluindo exemplo java
Showing
2 changed files
with
27 additions
and
0 deletions
Show diff stats
src/java/run.sh
| ... | ... | @@ -0,0 +1,26 @@ |
| 1 | + | |
| 2 | +import pw3270.*; | |
| 3 | + | |
| 4 | +public class efglobe | |
| 5 | +{ | |
| 6 | + public static void main (String[] args) | |
| 7 | + { | |
| 8 | + try | |
| 9 | + { | |
| 10 | + terminal host = new terminal(); | |
| 11 | + | |
| 12 | + host.connect("tn3270://zos.efglobe.com:telnet",10); | |
| 13 | + | |
| 14 | + host.wait_for_ready(10); | |
| 15 | + | |
| 16 | + System.out.println("Read: [" + host.get_string_at(14,19,38)+"]"); | |
| 17 | + | |
| 18 | + host.disconnect(); | |
| 19 | + | |
| 20 | + } | |
| 21 | + catch( Exception e ) | |
| 22 | + { | |
| 23 | + System.err.println(e); | |
| 24 | + } | |
| 25 | + } | |
| 26 | +}; | ... | ... |