예제 #1
0
  /**
   * Construct a remote text screen for the given terminal.
   *
   * @param terminalIO
   */
  public RemoteTextScreen(TerminalIO terminalIO) {
    super(terminalIO.getColumns(), terminalIO.getRows());
    this.terminalIO = terminalIO;

    buffer = new char[terminalIO.getColumns() * terminalIO.getRows()];
    for (int i = 0; i < buffer.length; i++) {
      buffer[i] = ' ';
    }
  }