next up previous contents index
Next: TCSetPGrp Up: Functions and procedures Previous: TCSendBreak

TCSetAttr

   

Declaration:

Function TCSetAttr (Fd:longint;OptAct:longint;var Tios:TermIOS) : Boolean;

Description:

TCSetAttr Sets the terminal parameters you specify in a TermIOS structure Tios for the terminal referred to by the file descriptor Fd. OptAct specifies 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 True if the call was succesfull, False otherwise.

Errors:

Errors are reported in LinuxError.

See also:

TCGetAttr, termios (2)

For an example, see TCGetAttr.



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998