missing test for TERM_ONLY_CHECK_MOUSING in the case of piped input
Handle TERM_ONLY_CHECK_MOUSING in the single-threaded code path