Based on the height of the current terminal window, I want to determine how many lines I can display and display the rest of the lines in a different screen, once enter is pressed. I know how to do it in Perl, I want to know how to do it in python. Is there any library I'm missing?
**edit : ** I have the size of the terminal. Let's say its height is 80 characters. I want to know how can I modify the display of the output of say 200 lines, to say 50 at a time.