jaster.cli.text

Contains various utilities for displaying and formatting text.

Members

Classes

TextBuffer
class TextBuffer

An ANSI-enabled class used to easily manipulate a text buffer of a fixed width and height.

Enums

TextBufferLineMode
enum TextBufferLineMode

Determines how a TextBuffer handles writing out each of its internal "lines".

Functions

asLineWrapped
LineWrapRange!string asLineWrapped(string text, LineWrapOptions options)
LineWrapRange!(const(char)[]) asLineWrapped(CharArrayT text, LineWrapOptions options)

Returns an InputRange (LineWrapRange) that will wrap the given text onto seperate lines.

lineWrap
string lineWrap(const(char)[] text, LineWrapOptions options)

Same thing as asLineWrapped, except it is eagerly evaluated.

Structs

LineWrapOptions
struct LineWrapOptions

Contains options for the lineWrap function.

LineWrapRange
struct LineWrapRange(StringT)

An InputRange that wraps a piece of text into seperate lines, based on the given options.

TextBufferBounds
struct TextBufferBounds

A basic rectangle struct, used to specify the bounds of a TextBufferWriter.

TextBufferOptions
struct TextBufferOptions

Options for a TextBuffer

TextBufferRange
struct TextBufferRange

A mutable random-access range of AnsiChars that belongs to a certain bounded area (TextBufferBound) within a TextBuffer.

TextBufferWriter
struct TextBufferWriter

The main way to modify and read data into/from a TextBuffer.

Meta