interface Command
source · line 10public
public interface Command
A terminal command that writes its ANSI representation to a text destination. Serialization alone does not flush output or query terminal capabilities.
Extensions
public fun Command.toAnsiString(): String· scoop:scoop.terminal:0.1.0
function writeAnsi
source · line 15public
public 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.
parameter writer
source · line 15public
writer: TextWriter