Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

Flush method

Project: I/O Utility Classes

Unit: PJPipeFilters

Class: TPJAnsiSBCSPipeFilter

Applies to: ~>1.0

procedure Flush;

Description

Flushes any pending un-terminated line of ANSI text from the internal buffer.

If there is any text in the buffer then the OnLineEnd event is triggered for that text as if it was a complete line. If there is no un-terminated text then the event is not triggered.

Remarks

It is not recommended that Flush is called while there is still data in the pipe as this can introduce artificial line breaks in the text.

Flush is called automatically when the filter object is destroyed.

Calling Flush multiple times between pipe reads or after the last read is benign. Once any remaining text has been flushed further calls to the method have no effect.