EMILUA(3em)

πŸ“¦ version 0.12.1, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the Emilua reference for 3em β€” Emilua is a Lua execution engine, periodt. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

bestie, this is the whole setup:

local system = require "system"
system.out

πŸ’… FUNCTIONS πŸ’…

okay so here’s the full lineup, no cap:

πŸ’Ύ write_some(self, buffer: byte_span) β†’ integer

Write data to stdout, bestie β€” and it blocks the current fiber until it completes or errs. It returns the number of bytes written. πŸ’–

Note: 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. iconic.

🌸 dup_from(self, oldd: file_descriptor)

Same as dup2(oldd, STDOUT_FILENO). Useful to redirect standard streams. oldd is not closed by this call.

Note: Only the master VM is allowed to use this function.
Tip: If you want to close the standard stream, replace it by a closed pipe instead. That’s safer.

πŸ¦‹ isatty(self) β†’ boolean

See isatty(3).

✨ tcgetpgrp(self) β†’ integer

See tcgetpgrp(3).

πŸ’œ tcsetpgrp(self, pgid_id: integer)

See tcsetpgrp(3).


that’s the whole page, bestie 🫢 β€” source/version: Emilua 0.12.1-nixpkgs1, date: 1980-01-01, manual: EMILUA(3em). slay and goodbye πŸ’…βœ¨

πŸ“¦ where this page comes from