r = 0
mypad.addstr(0, 0, "Test...")
while 1:
mypad.refresh(r, 0, 1, 1, 10, 10)
c = mypad.getch()
if c == curses.KEY_UP:
r -= 1
elif c == curses.KEY_DOWN:
r += 1
elif c == ord('q'): break
Test...
is displayed, but when I press up/down it just disappear.
Update:
actually when adding more lines I found it scrolls, but only upwards, not below initial position. No matter how big r will be, the text will stay on first row. What am I missing?