Minor changes for terminal auto-scroll