示例#1
0
 public void lineFeed() {
   if (cursorY != screen.getScrollBottom()) {
     cursorY++;
   } else {
     scroll(1);
   }
 }
示例#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);
 }