Stdout

public struct Stdout { /* private fields */ }

Writable over the process's standard output (file descriptor 1).

As with Stdin, stateless — flush is a no-op because writes go straight to libc; line buffering / TTY behaviour is handled by libc or the terminal.

Representation

Zero-sized.

Initializers

public init()

Builds a stdout handle.

ImplementsWritable

Methods

public mutating func flush() -> Result[(), IoError]

No-op; stdout does no internal buffering at this layer.

public mutating func write(from: ArraySlice[UInt8]) -> Result[Int64, IoError]

Calls write(2) on STDOUT_FILENO.

Defined in lang/std/io/stdio.ks