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(const(char[]) 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.

Properties

newline
Output newline [@property getter]

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

output
OutputStream output [@property getter]

Returns the configured output sink.

output
OutputStream output [@property setter]

Divert output to an alternate sink.

redirected
bool redirected [@property getter]

Is this device redirected?

redirected
bool redirected [@property setter]

Set redirection state to the provided boolean.

stream
OutputStream stream [@property getter]

Return the associated stream.

Meta