don't hang on TERM_ONLY_CHECK_MOUSING if input is from a file