Define a software scrolling region. top First line number. bottom Last line number. All scrolling actions will take place in this region.
curses/window.setscrreg
window.setscrreg