Fix redrawing after calling `term'