Did you know ... Search Documentation:
Predicate thread_has_console/0