Only turn on interactive mode if in a console.