Using Get text action for Terminal Emulator

Use the Get text action to retrieve text from the terminal and store it in a string variable. This action enables you to retrieve text from the last line, all lines, or a range of lines. You can use this action with the TN3270E, TN5250E, ANSI, and VT100 terminal types.

To retrieve text from the terminal, do the following:

Procedure

  1. Double-click or drag the Get text action from the Terminal Emulator node in the Actions palette.
  2. Enter the name of the session that you have used to establish a connection with the terminal using the Connect action in the Terminal emulator session name field.
  3. Select an option from the Get text list to specify the lines from which you want to retrieve text:
    • Last line: Retrieves text from the last line of the terminal.
    • All lines: Retrieves text from all lines of the terminal.
      Select from the following options to extract text from a specific area, viewable area, or the entire page displayed on the screen.
      • Viewport: Retrieves text from the visible area of the Terminal Emulator window.
      • Number of lines from top: To retrieve text corresponding to a specific number of lines from the top of the screen.
      • Full page capture (with scroll): Retrieves all the lines on the screen, including the content that needs to be scrolled to access it.
      Note: The Full page capture (with scroll) and Number of lines from the top options are supported only for ANSI and VT Series terminals. If you connect with other terminal types, regardless of the option selected, the extracted text displays the results similar to how they are displayed for the Viewport option.
    • Lines from-to: Retrieves text from the specified range of lines of the terminal. You must enter values in the Start row and End row fields to specify the range.
      Note: You can specify a value of 1 through 999.
  4. Select a string variable from the Assign the value to an existing variable list to assign the retrieved text to that variable.
  5. In the Assign value to variable list, select a string variable.