#include <oskit/io/ttystream.h>OSKIT_COMDECL setattr(oskit_ttystream_t *tty, const struct oskit_termios *attr);
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.
- tty
- The TTY stream object to modify.
- attr
- The structure containing the new line settings.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.