[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'oldlinux' (#rtl)

TCFlush

Terminal control: Discard data buffer

Declaration

Source position: oldlinux.pp line 1505

function TCFlush(

  fd: LongInt;

  qsel: LongInt

):Boolean;

Description

TCFlush discards all data sent or received to/from file descriptor fd. QSel indicates which queue should be discard. It can be one of the following pre-defined values :

TCIFLUSH
input buffer
TCOFLUSH
output buffer
TCIOFLUSH
both input and output buffers

The function returns True if the call was succesfull, False otherwise.

Errors

Errors are reported in LinuxError.

See also

TCDrain

  

Terminal control: Wait till all data was transmitted

TCFlow

  

Terminal control: Suspend transmission of data

TCGetAttr

  

Terminal Control: Get terminal attributes

TCGetPGrp

  

Terminal control: Get process group

TCSendBreak

  

Terminal control: Send break

TCSetAttr

  

Terminal control: Set attributes

TCSetPGrp

  

Terminal control: Set process group

TTYName

  

Terminal control: Get terminal name

IsATTY

  

Check if filehandle is a TTY (terminal)

The latest version of this document can be found at lazarus-ccr.sourceforge.net.