Fix autocompletion causing TUI to run
On some terminals, the check for sys.stdin.isatty() was not enough and [TAB][TAB] action was still calling run_tui(). Now we check for env variable that is set inside the autocompletion script.
On some terminals, the check for sys.stdin.isatty() was not enough and [TAB][TAB] action was still calling run_tui(). Now we check for env variable that is set inside the autocompletion script.