Screen.getText()

Overview

Get text from the native emulation screen. Only valid for TE hosts.

Use Cases

You would like to change how a script processes scan data based on screen content.

Format

var text = Screen.getText(row, column, length);

Parameter Description Type Required Notes
row The native screen row. 0 based. Number Required
column The native screen column. 0 based. Number Required
length The number of columns to read. Number Optional If not specified, then the specified row will be read to the end.

Example

Copy
/* Read 5 characters from the screen from the 1st row starting at the 6th column
 */
 
var text = Screen.getText(0, 5, 5);