Insert (nlines > 0) or delete (nlines < 0) lines above the cursor.
curses/window.insdelln
window.insdelln