I created a pad
in curses
then I filled it with a bunch of text. the height of the pad is constant, however, I would like to know how many lines there are in the written part of the pad or the height of it.
rows, cols = std.getmaxyx()
text_win = cur.newpad(rows*3, cols)
text_win.addstr("some stuff")