Move handling of stty setup to NewTTY