restore the stty settings rather than set to sane values

Signed-off-by: Mattias Andrée <maandree@operamail.com>