Example #1
0
 public void lineFeed() {
   if (cursorY != screen.getScrollBottom()) {
     cursorY++;
   } else {
     scroll(1);
   }
 }
Example #2
0
 public void setScreen(boolean alternate) {
   int scrollTop = screen.getScrollTop();
   int scrollBottom = screen.getScrollBottom();
   if (alternate) {
     screen = alternateScreen;
   } else {
     screen = defaultScreen;
   }
   screen.setScrollRegion(scrollTop, scrollBottom);
 }