fix scroll problem in ansi term