EMILUA(3em)

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

πŸ’… 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