comparison src/org/tn5250j/framework/tn5250/tnvt.java @ 257:8a6c7c7ffe0d

support 132 column mode
author Carl Byington <carl@five-ten-sg.com>
date Mon, 14 Jul 2014 14:25:03 -0700
parents c438c2ff0052
children 071eccdff8ea
comparison
equal deleted inserted replaced
256:29a431920007 257:8a6c7c7ffe0d
2266 byte abyte0[] = new byte[64]; 2266 byte abyte0[] = new byte[64];
2267 abyte0[0] = 0; // Cursor Row/column (set to zero) 2267 abyte0[0] = 0; // Cursor Row/column (set to zero)
2268 abyte0[1] = 0; // "" 2268 abyte0[1] = 0; // ""
2269 abyte0[2] = -120; // X'88' inbound write structure Field aid 2269 abyte0[2] = -120; // X'88' inbound write structure Field aid
2270 2270
2271 if (enhanced == true) { 2271 if (enhanced) {
2272 abyte0[3] = 0; // 0x003D (61) length of query response 2272 abyte0[3] = 0; // 0x003D (61) length of query response
2273 abyte0[4] = 64; // "" see note below ????????? 2273 abyte0[4] = 64; // "" see note below ?????????
2274 } 2274 }
2275 else { 2275 else {
2276 abyte0[3] = 0; // 0x003A (58) length of query response 2276 abyte0[3] = 0; // 0x003A (58) length of query response
2334 // 53 2334 // 53
2335 // Bit 0-2: B'000' - no graphics capability 2335 // Bit 0-2: B'000' - no graphics capability
2336 // B'001' - 5292-2 style graphics 2336 // B'001' - 5292-2 style graphics
2337 // Bit 3-7: B '00000' = reserved (it seems for Client access) 2337 // Bit 3-7: B '00000' = reserved (it seems for Client access)
2338 2338
2339 if (enhanced == true) { 2339 if (enhanced) {
2340 // abyte0[53] = 0x5E; // 0x5E turns on ehnhanced mode 2340 // abyte0[53] = 0x5E; // 0x5E turns on enhanced mode
2341 // abyte0[53] = 0x27; // 0x5E turns on ehnhanced mode 2341 // abyte0[53] = 0x27; // 0x5E turns on enhanced mode
2342 abyte0[53] = 0x7; // 0x5E turns on ehnhanced mode 2342 abyte0[53] = 0x7; // 0x5E turns on ehnhanced mode
2343 Log.i(TAG, "enhanced options"); 2343 Log.i(TAG, "enhanced options");
2344 } 2344 }
2345 else 2345 else
2346 abyte0[53] = 0x0; // 0x0 is normal emulation 2346 abyte0[53] = 0x0; // 0x0 is normal emulation