Scoop API

scoop:scoop.terminal:0.1.0

StyledContent

struct StyledContent

source · line 44
public
public struct StyledContent<T : ToString>(val style: ContentStyle, val content: T) : Command, ToString

Serializes style, content, and the corresponding reset commands. It restores terminal defaults for changed channels rather than saving and restoring an arbitrary prior style.

function toString

source · line 66
public
public override fun toString(): String

Returns the complete ANSI-styled content string using the current color policy.

function writeAnsi

source · line 49
public
public override fun writeAnsi(writer: TextWriter): Unit

Writes this command's ANSI representation to the supplied writer without flushing it. Parameter validation happens before or during serialization.