Introduce HAVE_TERMINAL
Source code should check for features detected during configure-time, rather than checking for a specific OS.
See also commit 87e8d0ba5f.