next up previous contents index
Next: 5.7.3 sendbreak: Send a Up: 5.7 oskit_ttystream: Interface to Previous: 5.7.1 getattr: Get the

5.7.2 setattr: Set the stream's TTY attributes

 

SYNOPSIS

#include <oskit/io/ttystream.h>

OSKIT_COMDECL setattr(oskit_ttystream_t *tty, const struct oskit_termios *attr);

DESCRIPTION

This method sets the line settings of this stream based on the specified oskit_termios structure. This method corresponds to the POSIX tcsetattr function; see the POSIX standard for details.

PARAMETERS

tty
The TTY stream object to modify.
attr
The structure containing the new line settings.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



University of Utah Flux Research Group