Пример #1
0
  public void scroll(int amount) {
    if (screen.getScrollTop() == 0 && screen == defaultScreen && amount > 0) {
      while (amount > 0) {
        int[] line, copy;
        history.scroll(1, false, 0);
        copy = history.getLine(0);

        line = screen.getLine(0);
        for (int j = 0; j < line.length; j++) copy[j] = line[j];

        screen.scroll(1, true, attributes);
        amount--;
      }
    } else {
      screen.scroll(amount, true, attributes);
    }
  }
Пример #2
0
 public int dataAt(int column, int row) {
   int[] line = screen.getLine(row);
   return line[column];
 }