16.3 Terminal and console
Higher-level console APIs sit above syscall-backed I/O—ANSI belongs in corelib, not in every sample main.
Terminal and console
Low-level syscall-backed I/O lives under the runtime System split (Input, Output, Error). Console work—colors, line discipline, the stuff you actually want when printing—belongs in dedicated corelib packages (for example corelib_console), not a monolithic IO.bd that became a junk drawer.
Practical guidance
Section titled “Practical guidance”- Prefer documented console helpers for user-facing CLI output in your packages.
- Do not reimplement ANSI escape archaeology in app code because Stack Overflow said so.
- When behavior differs by OS, check platform-spec Standard text before
#ifdefcosplay in Beskid.