Hola Ignacio

Si no intiendes algo me dices y puedo explicartelo en espanol.

This is what I was wondering how you implemented.

In the writeToDisplay you added a -128 byte code?  If so where is -128 defined
and how do you receive it?  Did you change the application displays to get it 
there?

If you did change the the applications then I think we have a better way to
handle this within the code base called "command scanning".  It was an idea I
had with an elementary implementation in the code base but Wim and his company
went on to make if a full fledged implementation that they use for exactly that
reason.

Within tnvt.java from cvs take a look at:

        // WVL - LDC : TR.000300 : Callback scenario from 5250
        /**
         * When command scanning is activated, the terminal reads the first and
         * second character in the datastream (the zero position allows to
         * devisualize the scan stream). If the sequence <code>#!</code> is
         * encountered and if this sequence is <strong>not </strong> followed 
by a
         * blank character, the [EMAIL PROTECTED] parseCommand(ScreenChar[])}is 
called.
         */
        private void scan() {


So if this might work a little better for you and is a cleaner implementation.

Regards

Kenneth


Quoting [EMAIL PROTECTED]:

> 
> Hi Kenneth,
> 
> 
> (I am sorry if got wrong sending mail to incorrect list.)
> 
> I am not able to check the list daily, but I should do it.
> 
> For enable STRPCCMD we add this code to tnvt class in method
> writeToDisplay:
> 
>                                     case -128: //strpccmd
>                                         String
> comparar="-4-41-61-4264-125-128-95-128-128";
>                                         String comparar2="";
>                                         for (int i=1;i<11;i++)
>                                             comparar2+=bk.getNextByte();
>                                         if(comparar.equals(comparar2))
>                                             {
>                                                 String comando="";
>                                                 int currentbyte=0;
>                                                 while(currentbyte!=2)
>                                                 {
> 
> comando+=ebcdic2uni(currentbyte);
> 
> currentbyte=bk.getNextByte();
>                                                 }
> 
> ejec(comando.substring(1,comando.length()));
>                                                 bk.setPrevByte();
> 
> screen52.sendKeys(screen52.MNEMONIC_ENTER);
>                                             }else{
>                                                 for (int i=1;i<11;i++)
>                                                     bk.setPrevByte();
>                                             }
> 
> The "ejec" call performs a simple execution of local program specified by
> the argument, which can contains arguments in the same string, eg:
> ejec("/var/bin/firefox http://intranet/help.jsp?book=13";)
> 
> In AS400 part, we can made STRPCO (Start Personal Communications) and then
> STRPCCMD with the string referred in the above example. In Client Access
> there is a component pco.exe which gets this call and executes the local
> process.
> 
> When user ends his AS400 session he gets a message telling "PCO.EXE IS NOT
> FOUND. PRESS ENTER". We were solving this make up issue by sending the
> intro automatically after log out.
> 
> One minor problem we have, (as I consider but not our users), is at the
> begining of applet loading. When the applet is started and you can see the
> first screen, you have to do a few mouse clicks within before you are able
> to type in. This behaviour does not happen when we use tn5250j in desktop
> way.
> 
> We are going to use tn5250j in a very intensive way 7/24 and our users are
> very, very demanding, especially about keys behaviour. I am sure we will
> have problems keeping our code with the project cvs.
> 
> (I hope my English would be a little clear. I am not very confident with
> it.)
> 
> Regards
> 
> Ignacio.
> 
> ------------------------------------------------------------
> 
> Ignacio
> 
> Could you please join our tn5250j-general mailing list.  I
> would really like to discuss this with you and there are
> quite a few people that would be interested in this.  If you
> could please copy and paste this last message when you join
> because I have a few questions about the change and what it
> did and why.  This comment area is not a good medium to chat
> back and forth with.
> 
> Also if you would like to change the source in cvs I can
> give you access so we can keep up to date.
> 
> Am very interested in your implementation of the STRPCCMD
> and what you are doing here.
> 
> Well that is if you guys are willing to discuss this with us.
> 
> Congrats on finding that because I never would have.
> 
> Please join us as I am looking forward to some discussions
> with other developers that are actually changing the code.
> 
> Regards
> 
> Kenneth
> 
> ----------------------------------------------------------------------
> 
> Comment By: Ignacio (ilacosta)
> Date: 2005-06-08 15:41
> 
> Message:
> Logged In: YES
> user_id=1215661
> 
> Hi Kenneth, thank you for your answer. I'm sorry for the delay
> in my response, but I was on a trip.
> 
> Working with this issue, I could see that in the AS400
> terminals Mocha and tn5250j appeared with different type.
> We found the solution to this problem by changing the
> value "abyte[50]=16" to "abyte[50]=17" in tnvt class.
> 
> I'm glad I can see activity on this project. It can be very
> important piece of our big project of migration from Windows
> world to Linux. We have plans to use the tn5250j as applet.
> And we are changing little things to our particular
> requirements, mainly setting default properties, keys
> mapping...
> One of changes we made was add code for intercept the AS
> command STRPCCMD to execute local processes: in some
> circumstances our users are able to press F1 to get
> contextual help, wich is served after opening a browser with
> URL  arguments.
> 
> We are a spanish catering trade with presence in Europe,
> North Africa, Caribbean zone and Florida, and we have about
> 500 AS400 users.
> 
> Congratulations for the great work.
> 
> Ignacio.
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you
> shotput
> a projector? How fast can you ride your desk chair down the office luge
> track?
> If you want to score the big prize, get to know the little guy.  
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> _______________________________________________
> Tn5250j-general mailing list
> Tn5250j-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tn5250j-general
> 






-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general

Reply via email to