Sleep in term_read while loop while there's no data