Improve scrool, and improve terminal compatibility