Implement scrolling in vga terminal