Skip to content

Stderr

The process's standard error.

Obtained as shell.stderr.

Stateless and interchangeable, as Stdout is. Unlike term.console, this bypasses extensions that have taken over the terminal shell-wide: it is the error stream itself.

Methods

(eq) other

Compares two handles. All instances are interchangeable, so any two are equal.

(sink)()

Accepts values as a sink, writing them verbatim, as Stdout does.

flush()

Flushes buffered output to the stream.

write data -> Int

Writes bytes verbatim. Identical in behavior to Stdout.write.

Parameters

NameTypeDescription
data (Str | Bin) Bytes to write.

Returns

The number of bytes written.

Example

shell.stderr.write "fatal: no such target\n"