modify curses print functions to take scrolled lines and columns as well as terminal dimensions into account