tcsetattr method

int tcsetattr(
  1. int fd,
  2. int optional_actions,
  3. termios termios_p
)

Set the parameters associated with the terminal.

Implementation

int tcsetattr(int fd, int optional_actions, termios termios_p) {
  if (fd != 0) return -1; // Only stdin supported
  return io.ioTcsetattr(termios_p.c_lflag);
}