Ebcdic() action

Overview
The Ebcdic action returns part or all of the contents of the screen buffer as EBCDIC values. It uses 0-origin coordinates; the upper-left corner of the screen is row 0, column 0.

Each screen buffer position is returned as a 2-digit hexadecimal number, e.g.,  for the letter. Start Field characters are returned as. Each row on the screen becomes a separate line of output, with each buffer position separated by spaces.

Note: The Ebcdic1 action, which uses 1-origin coordinates, is preferred.

Parameters
Ebcdic takes 0, 1, 3 or 4 parameters.

If no parameters are given
The entire screen buffer is returned.

If one parameter is given
The screen text is returned starting with the cursor position.
 * length
 * Number of buffer positions

If three parameters are given

 * row
 * Starting row (0-origin)


 * column
 * Starting column (0-origin)


 * length
 * Number of buffer positions

If four parameters are given

 * row
 * Starting row (0-origin)


 * column
 * Starting column (0-origin)


 * rows
 * Number of rows


 * columns
 * Number of columns

Return value
Screen text, one row per line.

Examples
Return the entire screen buffer, one row per line. Ebcdic

Return 27 buffer positions, starting at the cursor position. Ebcdic(27)

Return 80 buffer positions starting at row 2, column 0. (The upper-left corner of the screen is row 0, column 0.) Ebcdic(2, 0, 80)

Return 8 rows and 40 columns starting at row 2, column 0. (The upper-left corner of the screen is row 0, column 0.) Ebcdic(2, 0, 8, 40)