Use 'char_avail' to check for input in background