Ignore terminal width when not running in an interactive shell
shell use with python/ipython is unaffected, but redirecting to a file
gives you all the columns unles print_config.max_columns is set.
#1610.
