Scroll terminal to the visible area when input