memory: support auto redraw and one line scroll up/down