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