I am using curses
library for my Python
program.
I have function called documentation
that is supposed to print documentation in terminal. The problem is, I have a lot of content there, and because quantity of rows is bigger the terminal's ones, it throws an error.
_curses.error: addwstr() returned ERR
Actually, I have an idea of how to fix that - is to create scrollable window, and put all content there - just like here. The problem is, I doesn't work for me and I don't have enough knowledge of why it doesn't work.
So, having, for example this code:
for i in range(10000):
stdscr.addstr(i+1)
How can you make it scrollable?