property Terminal : TApxTerminal
Defines the visual terminal component.
The Terminal property defines the terminal component whose canvas is used for drawing the terminal display, and which provides access to the keyboard for the emulator. The terminal component also holds the reference to the serial device through its ComPort property.
The terminal component and emulator component use each other to provide the correct functionality of the terminal emulation. The terminal component holds a link to the serial port that provides the incoming data stream, and passes all of this data directly to the emulator. The emulator, by use of its terminal parser instance, will interpret the data and modify the buffer (a TApxTerminalBuffer instance) to hold the new representation of the terminal display. The terminal component will also pass to the emulator all keystrokes entered by the user so that the emulator, with the use of its keyboard mapping component, can identify the keystroke and convert it into the correct response to the host computer. Occasionally, especially if the terminal component is using lazy writing, the terminal will instruct the emulator to draw a depiction of the current state of the terminal display on the terminal component's canvas.
If you set the Terminal property to nil, the emulator will detach itself from the previous terminal component. This component will then use its internal TTY emulator.
See also: TApxTerminal.ComPort, TApxTerminal.Emulator