Problem: has('gui_running') is still common in the wild and our answer has changed over time, causing frustration. 95a6ccbe9f Solution: Use stdin_tty/stdout_tty to decide if a UI is (not) a GUI.
95a6ccbe9f