3270: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Created page with "{{stub}} The '''3270''' is a family of terminals compatible and often used with the S/390 and z/Architecture mainframes. They are relatively simple to code for, and act as a ..."
 
m corrections
 
Line 20:
#define X3270_CMD_READ_MODIFIED 0x06 // Read modified
#define X3270_CMD_NOP (CSS_CMD_CONTROL) // No operation
#define X3270_CMD_WSF 0x11 // Write Start(?)Structured Field
</syntaxhighlight>
 
Line 95:
Writing to the 3270 can be, generally broken down into several steps:
 
* An initial SFbyte tellingknown the 3270 aboutas the PROTECTIONWrite of theControl writtenCharacter data(WCC)
* The SBA command to set the address the text is going to be written at
* The text itself, encoded in EBCDIC
Line 111:
size_t offset = 0, addr;
 
// optional starting sfwcc
buf[offset++] = X3270_ORDER_START_FIELD;
buf[offset++] = 0x00;