× 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.



I'm working on an emulator of my own.
Since browsing the source of tn5250 has helped me a bit, I'll help in
return.

The following works *most* of the time.

It's vaguely and poorly documented, and took me a little while to figure
out.

here http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/CO2E2001/16.2.2.2
and here http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/co2e2001/15.8

The return error code can be constructed by taking the 2-5 bytes of the
current error line (assuming the error is still diplayed there) and
creating a 2 byte code as such:
Assuming
1. "errorline" contains attributes and EBCDIC values
2. errorline[0] represents column 1

errcode[0] = ((errorline[2]&0x0f)<<4 ) | (errorline[3]&0x0f)
errcode[1] = ((errorline[4]&0x0f)<<4 ) | (errorline[5]&0x0f)

Then write a record back to the 400 with (FLAG_ERR_BYTE, screen_op_code,
errcode)


This should be done in pre-help error state.

Note that I'm not aware of any open-source or 3rd party emulators that have
this implemented.
Usually in other implementations, pressing help in pre-help-error mode just
sends the help aid key.

Good luck.
-Mark




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.