[terminal] don't get stuck with massive outputs (fixes #207)