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 _______________________________________________ This is the Linux 5250 Development Project (LINUX5250) mailing list To post a message email: [EMAIL PROTECTED] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/linux5250 or email: [EMAIL PROTECTED] Before posting, please take a moment to review the archives at http://archive.midrange.com/linux5250.