implement scroll up and scroll down escape sequences