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

TCSetAttr

Terminal control: Set attributes

Declaration

Source position: oldlinux.pp line 1498

function TCSetAttr(

  fd: LongInt;

  OptAct: LongInt;

  const tios: Termios

):Boolean;

Description

TCSetAttrsets the terminal parameters you specify in a TermIOSstructureTiosfor the terminal referred to by the file descriptor Fd.

OptActspecifies an optional action when the set need to be done, this could be one of the following pre-defined values:

TCSANOW
set immediately.
TCSADRAIN
wait for output.
TCSAFLUSH
wait for output and discard all input not yet read.

The function Returns Trueif the call was succesfull, Falseotherwise.

For an example, see TCGetAttr.

Errors

Errors are reported in LinuxError.

See also

TCDrain

  

Terminal control: Wait till all data was transmitted

TCFlow

  

Terminal control: Suspend transmission of data

TCFlush

  

Terminal control: Discard data buffer

TCGetAttr

  

Terminal Control: Get terminal attributes

TCGetPGrp

  

Terminal control: Get process group

TCSendBreak

  

Terminal control: Send break

TCSetPGrp

  

Terminal control: Set process group

TTYName

  

Terminal control: Get terminal name

IsATTY

  

Check if filehandle is a TTY (terminal)