TN5250j and strpccmd

[email protected] Wed, 13 Dec 2006 09:25:32 +0400
Newsgroups gmane.comp.java.tn5250j.devel
Message-ID <[email protected]>
I see on
http://www.mail-archive.com/[email protected]/msg00542
.html a patch for strpccmd but it does not work.
 
Here a working version with changes are in writeToDisplay:
 
 
/ WVL - LDC : 05/08/2005 : TFX.006253 - Support STRPCCMD
case -128: //STRPCCMD
// WVL - LDC : 13/12/2006 : STRPCCMD MG Patch
//if (screen52.getCurrentPos() == 82) {
  log.debug("STRPCCMD got a -128 command at "+ screen52.getCurrentPos());
  StringBuffer value = new StringBuffer();
  int b;
  char c;
  for (int i = 0; i < 9; i++) {
    b = bk.getNextByte();
    c = ebcdic2uni(b);
    value.append(c);
  }
String pco = value.toString();
log.debug("STRPCCMD = " + pco);
if ("ÜPCO cØ~Ø".equals(value.toString()))
  strpccmd = true;
// WVL - LDC : 13/12/2006 : STRPCCMD MG Patch
if ("\u00dcPCO\u0020\u0063\u00d8\u00a8\u00d8".equals(value.toString()))
  strpccmd = true;
// we return in the stream to have all chars
// arrive at the screen for later processing
for (int i = 0; i < 9; i++)
  bk.setPrevByte();
// WVL - LDC : 13/12/2006 : STRPCCMD MG Patch
//}
// no break: so every chars arrives
// on the screen for later parsing
//break;
  _____  

Mahmoud GANGAT
Groupe Vindemia - SSTIC
Département Architecture & Développement
Tél: 0262 49 49 49
Fax: 0262 43 02 18
Mel:  <mailto:[email protected]> [email protected]
Jabber: [email protected]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Tn5250j-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tn5250j-develop
tnvt.java (application/octet-stream, 87.3 KB) - not displayed