EMILUA(3em)
π 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
- nixos 26.05: emilua 0.12.1
- nixpkgs unstable: emilua 0.12.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms