Defines the main interface for output of the repl. This allows us to redirect it (e.g., in the case of a server connection or tests).

The formatter allows to dynamically change the use of ansi escape sequences (see OutputFormatter)

standardReplOutput

interface ReplOutput {
    formatter: OutputFormatter;
    stderr(msg: string): void;
    stdout(msg: string): void;
}

Properties

Methods

Properties

formatter: OutputFormatter

Methods