S3270 protocol

Description
The s3270 protocol is the original script framing protocol defined by x3270. It is the protocol used by s3270 on its standard input and standard output. It is the protocol used on TCP sockets between peer scripts and the emulator, defined by the scriptport resource. It is the default protocol used between the emulator and a script started by the Script action on Windows, and optionally on Unix.

The basic model is:
 * The script sends a line containing actions and parameters, terminated by a newline character.
 * The emulator responds with two or more lines of output, also terminated by a newline character. (On s3270 on Windows standard output, the lines are terminated by a CR-LF sequence.)

Note that this