ruby-stty implements functions in /bin/stty, see man stty please.