Method BuildAnsiForRegion
BuildAnsiForRegion(IOutputBuffer, int, int, int, int, StringBuilder, ref Attribute?, Func<int, int, bool>?, bool)
Builds ANSI escape sequences for the specified rectangular region of the buffer.
protected void BuildAnsiForRegion(IOutputBuffer buffer, int startRow, int endRow, int startCol, int endCol, StringBuilder output, ref Attribute? lastAttr, Func<int, int, bool>? includeCellPredicate = null, bool addNewlines = true)
Parameters
bufferIOutputBufferThe output buffer to build ANSI for.
startRowintThe starting row (inclusive).
endRowintThe ending row (exclusive).
startColintThe starting column (inclusive).
endColintThe ending column (exclusive).
outputStringBuilderThe StringBuilder to append ANSI sequences to.
lastAttrAttribute?The last attribute used, for optimization.
includeCellPredicateFunc<int, int, bool>Predicate to determine which cells to include. If null, includes all cells.
addNewlinesboolWhether to add newlines between rows.