check for newline on last line of window

ncurses will ignore the newline if there are no
lines left in the window so we need to detect this manually