TextBufferWriter.write

Writes some text starting at the given point.

Notes: If there's too much text to write, it'll simply be left out.

Text will automatically overflow onto the next line down, starting at the given x position on each new line.

New line characters are handled properly.

When text overflows onto the next line, any spaces before the next visible character are removed.

ANSI text is only supported by the overload of this function that takes an AnsiText instead of a char[].

  1. TextBufferWriter write(size_t x, size_t y, char[] text)
  2. TextBufferWriter write(size_t x, size_t y, AnsiText text)
    struct TextBufferWriter
    pure
    write
    (
    size_t x
    ,
    size_t y
    ,)

Parameters

x size_t

The starting x position.

y size_t

The starting y position.

text AnsiText

The text to write.

Return Value

this, for function chaining.

Meta