tcsetattr

tcsetattr is a Linux standard interface to set parameters to the terminal.

See Library Functions on the Linux man-pages project for more information.