YMAX
if (lastrow > YMAX(wnd))
if (lastrow < YMAX(wnd)) {
wmove(wnd, YMAX(wnd), 0); wdeleteln(wnd); /* XXX */