glink/use_stdout
Types
pub type Stdout {
Stdout(stdout: WriteStream, write: fn(String) -> Nil)
}
Constructors
-
Stdout(stdout: WriteStream, write: fn(String) -> Nil)
Arguments
- stdout
-
Stdout stream passed to
render()
inoptions.stdout
orprocess.stdout
by default. NOTE: Not yet useable. - write
-
Write any string to stdout, while preserving Ink’s output. It’s useful when you want to display some external information outside of Ink’s rendering and ensure there’s no conflict between the two. It’s similar to
<Static>
, except it can’t accept components, it only works with strings.
pub type WriteStream