TerminalReadLineMarkupRenderer Delegate

Definition

Assembly XenoAtom.Terminal.dll

A renderer invoked to produce markup for the current visible slice of the line.

public delegate string TerminalReadLineMarkupRenderer(ReadOnlySpan<char> text, int cursorIndex, int viewStart, int viewLength, int selectionStart, int selectionLength);

Parameters

cursorIndex
Int32
viewStart
Int32
viewLength
Int32
selectionStart
Int32
selectionLength
Int32

Returns

Remarks

The returned string is interpreted as XenoAtom markup and rendered to ANSI. If the returned markup includes user input, callers should escape it via Escape(ReadOnlySpan<Char>).

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (1)

Methods (3)