don't use 100% CPU in frontend-term

use timed reads instead of a busy loop