Table of Contents

Class ConsoleOut

Namespace
Dassie.Text
Assembly
dstx.dll

Provides helper methods for writing colored fragments or tooltips to the console.

public static class ConsoleOut
Inheritance
ConsoleOut
Inherited Members

Methods

Write(Word)

Writes a word to the console.

public static void Write(Word word)

Parameters

word Word

The word to write.

Write(string, Fragment)

Writes text to the console with specific fragment style information.

public static void Write(string text, Fragment fragment)

Parameters

text string

The text to write.

fragment Fragment

The corresponding fragment.

Write(string, IEnumerable<Fragment>)

Writes source code with fragments to the console. Does not include basic syntax highlighting for keywords.

public static void Write(string source, IEnumerable<Fragment> fragments)

Parameters

source string

The source code.

fragments IEnumerable<Fragment>

A list of fragments for color information.

WriteLine(Tooltip)

Writes a tooltip to the console.

public static void WriteLine(Tooltip tooltip)

Parameters

tooltip Tooltip

The tooltip to write.