Would something like ``` if sys.stdout.isatty(): # You're running in a real terminal else: # You're being piped or redirected ``` allow quick to automatically determine if it was running in a TTY, and if not, open it as a GUI program?