system "stty", qw"-echo -echonl -echoke -echoe -isig" and die "error during stty"; ... system "stty", "sane" and warn "cannot reset stty settings";