× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: I found the SYSREQ problem...
  • From: Scott Klement <klemscot@xxxxxxxxxxxx>
  • Date: Tue, 23 May 2000 18:09:03 -0500 (CDT)


I figured out why system request isn't working when the keyboard is
locked by poking around a bit in the source.

This is a code snippet from display.c:


void tn5250_display_do_aidkey (Tn5250Display *This, int aidcode)
{     
   TN5250_LOG (("tn5250_display_do_aidkey (0x%02X) called.\n", aidcode));
         
   /* FIXME: If this returns zero, we need to stop processing. */
   if(This->session->read_opcode) {           <--- **** THIS LINE ****
      ( *(This->session->handle_aidkey)) (This->session, aidcode);
   } else {
      /* No read active.  AID code is pending. */
      This->pending_aid = aidcode;
   }  
} 

To test my theory, I changed that if statement to read:
  if((This->session->read_opcode)||(aidcode==TN5250_SESSION_AID_SYSREQ)) {

I tried it out, and this solved my problem....  but I don't know if this
is the right way to fix it, or not... and I don't know if this would
create any other problems?

Perhaps if Mr. Madore or Mr. Felice knows of a good way to fix this
problem, he/they could make the change, and put it in CVS?

Thanks!



+---
| This is the LINUX5250 Mailing List!
| To submit a new message, send your mail to LINUX5250@midrange.com.
| To subscribe to this list send email to LINUX5250-SUB@midrange.com.
| To unsubscribe from this list send email to LINUX5250-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.