Clears the output of the console between results printed by {@link #printSearch(java.util.Iterator, Maze2D)}.

@param newlines number of new lines
428553
public static void clearOutput(int newlines) {
        char[] chars = new char[newlines];
        Arrays.fill(chars, '\n');
        System.out.println(chars);
    }
208843
@Override
    public void clear() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
            Tr.event(tc, "Clearing this response: " + this);
        }
        super.clear();
        this.myStatusCode = StatusCodes.OK;
        this.myReason = null;
        this.myReasonBytes = null;
    }
486535
private ArrayList<TextPiece> dataCleaning(ArrayList<TextPiece> linesOfAPage) {
	TextPiece line = null;
	TextPiece preLine = null;
	TextPiece nextLine = null;
	for (int i = 0; i < linesOfAPage.size(); i++) {
	    line = linesOfAPage.get(i);
	    preLine = (i == 0) ? null : linesOfAPage.get(i - 1);
	    nextLine = (i == linesOfAPage.size() - 1) ? null : linesOfAPage
		    .get(i + 1);
	    if ((line.getText().replaceAll(" ", "").length() == 0)
		    && (preLine != null) && (nextLine != null)
		    && (preLine.getEndY() < line.getY())
		    && (line.getEndY() < nextLine.getY())) {
		linesOfAPage.remove(i);
		i--;
		// System.out.println("Removed the next line of: " +
		// preLine.getText());
	    }
	}
	return linesOfAPage;
    }
621274
@Override
    public void clear() {
        _rows = 0;
        Arrays.fill(_value, null);
        Arrays.fill(_tree, (char) 0);
        Arrays.fill(_key, null);
    }
610488
def _clear_output(self):
        
        # If progress output was being written, clear it from the screen.
        if self.progress_output:
            sys.stderr.write("\r".ljust(self.last_line_len))
            sys.stderr.write("\r")
            sys.stderr.flush()
604590
@Override
	public void clear() {
		Color neg = mapping.get(Double.NEGATIVE_INFINITY);
		Color pos = mapping.get(Double.POSITIVE_INFINITY);
		mapping.clear();
		mapping.put(Double.NEGATIVE_INFINITY, neg);
		mapping.put(Double.POSITIVE_INFINITY, pos);
	}
1258767
void redrawRestOfLine() {
        //The number of lines to reach the end of the frame.
        int maxLinesToRepaint = terminal.getHeight() - getFooterSize() - frameLine;
        LinkedList<String> toRepaintLines = new LinkedList<String>();
        String currentLine = getContent(getLine());
        toRepaintLines.addAll(toDisplayLines(currentLine));
        //Remove already shown lines
        int remainingLines = (getColumn() - 1) / terminal.getWidth();
        for (int r = 0; r < remainingLines; r++) {
            toRepaintLines.removeFirst();
        }

        saveCursorPosition();
        for (int l = 0; l < Math.min(maxLinesToRepaint, toRepaintLines.size()); l++) {
            console.out().print(ansi().cursor(frameLine + getHeaderSize() + l, 1));
            console.out().print(ansi().eraseLine(Erase.FORWARD));
            displayText(toRepaintLines.get(l));
        }
        restoreCursorPosition();
    }
1168035
public static final void clearRemaining(ByteBuffer bb)
    {
        if (bb.hasArray())
        {
            Arrays.fill(bb.array(), bb.arrayOffset()+bb.position(), bb.arrayOffset()+bb.limit(), (byte)0);
        }
        else
        {
            int limit = bb.limit();
            for (int ii=bb.position();ii<limit;ii++)
            {
                bb.put(ii, (byte)0);
            }
        }
    }
12560
public void clear(String treeReference){
		Pool<BehaviorTree> treePool = pools.get(treeReference);
		if(treePool != null){
			treePool.clear();
		}
	}
426044
@Override
	public void clear() {
		// This makes the formula false
		if (booleanTerms != null) {
			booleanTerms.clear();
		} else {
			booleanTerms = new HashSet<BooleanTerm>();
		}
		isSimplified = true;
	}
710074
function clearStringBackwards(stream: tty.WriteStream, str: string): void {
  readline.moveCursor(stream, -stream.columns, 0);
  readline.clearLine(stream, 0);
  let lineCount = (str.match(/\n/g) || []).length;
  while (lineCount > 0) {
    readline.moveCursor(stream, 0, -1);
    readline.clearLine(stream, 0);
    --lineCount;
  }
}
650995
protected void printResults(PrintStream out) {
        log.debug("printResults()");
        StringBuilder line = new StringBuilder();
        out.println(line);
        out.println();
    }
510025
public void removeTrailingEmptyLines ()
  {
    Line aLine = m_aLineTail;
    while (aLine != null && aLine.m_bIsEmpty)
    {
      removeLine (aLine);
      aLine = m_aLineTail;
    }
  }
160511
void repaintScreen() {
        int repaintLine = 1;
        console.out().print(ansi().eraseScreen(Erase.ALL));
        console.out().print(ansi().cursor(1, 1));
        console.out().print("\33[" + (getHeaderSize() + 1) + ";" + (terminal.getHeight() - getFooterSize()) + ";r");
        redrawHeader();
        redrawFooter();
        LinkedList<String> linesToDisplay = new LinkedList<String>();
        int l = 1;
        while (linesToDisplay.size() < terminal.getHeight() - getFooterSize()) {
            String currentLine = getContent(l++);
            linesToDisplay.addAll(toDisplayLines(currentLine));
        }

        for (int i = 0; i < terminal.getHeight() - getHeaderSize() - getFooterSize(); i++) {
            console.out().print(ansi().cursor(repaintLine + getHeaderSize(), 1));
            displayText(linesToDisplay.get(i));
            repaintLine++;
        }
        console.out().print(ansi().cursor(2, 1));
    }
374
@Override
  public void clear() {
    // iterate over all keys in originalMap and set them to null in deltaMap
    for (K key : originalMap.keySet()) {
      deltaMap.put(key, ErasureUtils.<Collection<V>>uncheckedCast(removedValue));
    }
  }
1328073
void freeOutput() {
        state.pool.free( output );
        output = outputs.size() > 0 ? outputs.removeLast() : null;
    }
251999
public void clear() {
        iMinPrintedDigits = 1;
        iPrintZeroSetting = PRINT_ZERO_RARELY_LAST;
        iMaxParsedDigits = 10;
        iRejectSignedValues = false;
        iPrefix = null;
        if (iElementPairs == null) {
            iElementPairs = new ArrayList<Object>();
        } else {
            iElementPairs.clear();
        }
        iNotPrinter = false;
        iNotParser = false;
        iFieldFormatters = new FieldFormatter[10];
    }