Remove dependency on `termios` module