window.insertln()

Insert a blank line under the cursor. All following lines are moved down by one line.

Related Reading

curses — Terminal handling for character-cell displays