#include <oskit/io/ttystream.h>OSKIT_COMDECL getattr(oskit_ttystream_t *tty, [out] struct oskit_termios *attr);
This method retrieves the current line settings of this stream and returns them in the specified oskit_termios structure. This method corresponds to the POSIX tcgetattr function; see the POSIX standard for details.
- tty
- The TTY stream object to query.
- attr
- The structure to be filled with the current line settings.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.