preserve stty settings

 * saves and restores stty settings instead of overwriting them with
   sane
Merge pull request #125 from ryantm/preserve

preserve stty settings