noir_ffi library

Noir — raw FFI surface.

Unstable. This barrel exposes the guarded FFI wrapper and typed native handles. Generated bindings and native library loading remain internal. The shape of this API tracks the C ABI of libopentui and can break whenever that ABI bumps. Application code should use package:noir/noir.dart or package:noir/noir_low_level.dart.

Classes

Attr
Terminal cell attribute bit flags.
BorderSides
Selects which sides of a terminal box are drawn.
BoxOptions
Semantic options for drawing a terminal box.
Color
Immutable RGBA color stored as normalized (0–1) channel values.
OpenTuiBindings
Guarded Dart wrapper around Noir's selected OpenTUI v0.5.1 exports.
OpenTuiHandle
Strongly typed OpenTUI v0.5.1 handle value.
OptimizedBufferHandle
Native optimized-buffer handle borrowed from a renderer.
RendererHandle
Native renderer handle.
TerminalImageHandle
Native decoded-image handle.

Enums

OpenTuiRenderStatus
Status returned by canonical OpenTUI rendering.
TextAlign
How terminal text should be aligned horizontally.

Exceptions / Errors

FFIException
Exception thrown when a guarded FFI operation fails.
OpenTuiLibraryLoadException
Thrown when the explicit development native-library override cannot load.