tcsetattr function

  1. @Native<Int Function(Int, Int, Pointer<Void>)>(Int, Int, Pointer<Void>)>()
int tcsetattr(
  1. int fd,
  2. int when,
  3. Pointer<Void> termios
)

tcsetattr(3): sets the attributes of the terminal fd to termios, when (tcsanow, …) says when; 0, or -1.

Not a leaf call: TCSAFLUSH and TCSADRAIN wait for the output to be sent.

Implementation

@Native<Int Function(Int, Int, Pointer<Void>)>()
external int tcsetattr(int fd, int when, Pointer<Void> termios);