EMILUA(3em)
π
EMILUA(3em) β the system.err bestie page π
πΈ NAME πΈ
Emilua - Lua execution engine β yes bestie, this is the EMILUA(3em) reference page, and itβs all about the system.err stream. Periodt. π
β¨ SYNOPSIS β¨
local system = require "system"
system.err
Thatβs the whole summoning ritual β system.err is right there. π«Ά
π FUNCTIONS π
Hereβs the whole stderr squad, in order π
πΎ write_some(self, buffer: byte_span) β integer
Write data to stderr, and it blocks the current fiber until it completes or errs. It returns the number of bytes written. π₯
Note: the first argument is ignored, and itβs only there to make it have a stream-like interface. No, bestie, youβre not bugging β thatβs literally the bit. π
π dup(self) β file_descriptor
Creates a new file descriptor that refers to STDERR_FILENO. Thatβs the whole move. π
π¦ dup_from(self, oldd: file_descriptor)
Same as dup2(oldd, STDERR_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). Thatβs the reference, bestie β go read it for the real tea. π΅
π tcgetpgrp(self) β integer
See tcgetpgrp(3). β
π tcsetpgrp(self, pgid_id: integer)
See tcsetpgrp(3). π«
Source version Emilua 0.12.1-nixpkgs1, dated 1980-01-01 β EMILUA(3em) and out, bestie! π
π«Άβ¨
π¦ 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