Console.Output

Console output accepts UTF8 only.

Members

Aliases

opCall
alias opCall = append
Undocumented in source.
opCall
alias opCall = flush
Undocumented in source.

Functions

append
Output append(cstring x)

Append to the console. We accept UTF8 only, so all other encodings should be handled via some higher level API.

append
Output append(Object other)

Append content.

flush
Output flush()

Explicitly flush console output.

newline
Output newline()

Append a newline and flush the console buffer. If the output is redirected, flushing does not occur automatically.

output
OutputStream output()

Returns the configured output sink.

output
Output output(OutputStream sink)

Divert output to an alternate sink.

redirected
bool redirected()

Is this device redirected?

redirected
Output redirected(bool yes)

Set redirection state to the provided boolean.

stream
OutputStream stream()

Return the associated stream.

Meta