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/220.127.116.11 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 represents column 1 errcode = ((errorline&0x0f)<<4 ) | (errorline&0x0f) errcode = ((errorline&0x0f)<<4 ) | (errorline&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.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.