diff -up bogl-0.1.18/bogl-term.c.original bogl-0.1.18/bogl-term.c --- bogl-0.1.18/bogl-term.c.original 2009-08-17 23:43:22.000000000 +0900 +++ bogl-0.1.18/bogl-term.c 2009-08-17 23:44:11.000000000 +0900 @@ -465,6 +465,7 @@ bogl_term_out (struct bogl_term *term, c /* Move all other lines down. Fortunately, this is easy. */ dirty_backscroll(term); term->yorig--; + if(term->yorig==-1) term->yorig=term->ysize-1; /* Clear the top line. */ for (i = SCR (0, 0); i < SCR (term->xsize, 0); i++)