| External Interfaces/API | ![]() |
Specify the terminator character
Description
You can configure Terminator to be CR, LF, CR/LF, or LF/CR. If Terminator is CR, the terminator is a carriage return. If Terminator is LF, the terminator is a line feed. If Terminator is CR/LF, the terminator is a carriage return followed by a line feed. If Terminator is LF/CR, the terminator is a line feed followed by a carriage return.
When performing a write operation using the fprintf function, all occurrences of \n are replaced with the Terminator property value. Note that %s\n is the default format for fprintf. A read operation with fgetl, fgets, or fscanf completes when the Terminator value is read. The terminator is ignored for binary operations.
You can also use the terminator to generate a bytes-available event when the BytesAvailableActionMode is set to terminator.
Characteristics
| Read only |
Never |
| Data type |
String |
Values
Functions
Properties
| Tag | Timeout | ![]() |