EMILUA(3em)

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

🌸 NAME 🌸

Emilua - Lua execution engine. Yup, bestie, you’re on the EMILUA(3em) page and we’re about to get cozy with system.in_ and its little function family 🫢✨


✨ SYNOPSIS ✨

The starter pack is literally:

local system = require "system"
system.in_

πŸ’… FUNCTIONS πŸ’…

πŸ“₯ read_some(self, buffer: byte_span) β†’ integer

Reads data from stdin and blocks the current fiber until it completes or errs. Returns the number of bytes read. No cap πŸ’–

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 STDIN_FILENO. Slay, standard input duplication moment πŸ‘‘

πŸ” dup_from(self, oldd: file_descriptor)

Same as dup2(oldd, STDIN_FILENO). Useful to redirect standard streams. oldd is not closed by this call, okay? Important detail, don’t forget it 😭

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). That’s the whole vibe check on this one πŸ¦‹

πŸŽ›οΈ tcgetpgrp(self) β†’ integer

See tcgetpgrp(3). Iconic terminal group behavior, iykyk.

πŸ•ΉοΈ tcsetpgrp(self, pgid_id: integer)

See tcsetpgrp(3). Go off, terminal process group setter πŸ’…


That’s the whole page, bestie. Sign-off: Emilua 0.12.1-nixpkgs1, dated 1980-01-01, manual EMILUA(3em) β€” stay hydrated and keep your file descriptors close πŸ’–βœ¨πŸŒˆ

πŸ“¦ where this page comes from