Avoid trying to configure ctrl-c output when non-interactive

Fixes "stty: standard input: Inappropriate ioctl for device"