Paginator that uses all available screen/window width

bugfix

To reproduce: click to position cursor at end of a line hit enter press any key

before: newline got erased and key got added to previous line

now: newline is preserved

The new test checks a generalization of this.

Created by  Kartik K. Agaram  on June 19, 2022
FYS7TCDWKNRNOJSGRD2JMU4B2LHX5S63ZISM7YF7KZYEYLVCIKIAC
Change contents