next up previous contents index
Next: CFSetISpeed Up: Functions and procedures Previous: TCGetAttr

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
Tue Mar 31 16:46:10 CEST 1998