TApxTerminal.WriteString

TApxTerminal

procedure WriteString(const aSt : string);

Writes a string to the terminal.

The string written to the terminal will go through the same steps that characters that have arrived from the serial device would go through. In other words, the characters in the string are first passed to the emulator, which decides what to do with them. If the emulator decides that certain characters are part of a terminal control sequence, it would appear as if the string had not been fully accepted (it would not appear on the display) when in reality it had. WriteString can be used to send terminal control sequences to the terminal to alter its behavior. Note that the host computer would be unaware of this change in behavior.

The terminal will accept a string written with WriteString at any time, even when it is actively receiving data from the serial device. Be aware that under these circumstances, the characters written with WriteString will intermingle with data from the serial device and may cause some bizarre behavior and displays.

Note also that the lazy write mode still applies to text written to the terminal with WriteString. If UseLazyDisplay is True, the text will appear at the appropriate time. The new data can be forced to be displayed in this case by calling the Update method.