www.delorie.com/djgpp/doc/libc/libc_811.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

tcsetattr

Syntax

 
#include <termios.h>

int tcsetattr (int fd, int action, const struct termios *termiosp);

Description

This function sets termios structure for device open on the handle fd from the structure termiosp. Note that the termios emulation handles console only.

The action argument can accept the following values:

TCSANOW

TCSADRAIN

TCSAFLUSH

Currently, any of these values causes the values in termiosp to take effect immediately.

See section Termios functions, for the description of the struct termios structure.

Return Value

Zero on success, nonzero on failure.

Portability

ANSI/ISO C No
POSIX 1003.2-1992; 1003.1-2001

Example

 
tcsetattr (0, TCSANOW, &termiosbuf);


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004