For the latest stable version, please use Emilua API 0.10!

system.out

Synopsis

local system = require "system"
system.out

Functions

write_some(self, buffer: byte_span) → integer

Write data to stdout and blocks current fiber until it completes or errs.

Returns the number of bytes written.

First argument is ignored and it’s only there to make it have a stream-like interface.

dup(self) → file_descriptor

Creates a new file descriptor that refers to STDOUT_FILENO.

isatty(self) → boolean

See isatty(3).

tcgetpgrp(self) → integer

See tcgetpgrp(3).

tcsetpgrp(self, pgid_id: integer)

See tcsetpgrp(3).