Stdout

Stdout :: # (opaque)

Write text or raw bytes to the process's standard output stream.

line! : Str => Try({}, [StdoutErr(IOErr)])

Write the given string to standard output, followed by a newline.

To write to stdout without the newline, see [Stdout.write!].

write! : Str => Try({}, [StdoutErr(IOErr)])

Write the given string to standard output.

Note that many terminals will not actually display strings that are written to them until they receive a newline, so this may appear to do nothing until you write a newline!

To write to stdout with a newline at the end, see [Stdout.line!].

write_bytes! : List(U8) => Try({}, [StdoutErr(IOErr)])

Write the given bytes to standard output.

Note that many terminals will not actually display content that is written to them until they receive a newline, so this may appear to do nothing until you write a newline!