Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Console controls

Platform spec feature

Console controls

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

What this feature specifies

Console.Controls provides character-cell layout primitives: Panel, VerticalStack / HorizontalStack, ProgressBar, Frame, and LiveTick integration. Rendering produces escape sequences for cursor save/restore, erase, and bounded redraw regions.

Contract statement

  • Controls must query Console.QuerySize() (or injected size) before layout.
  • Full-frame redraw should use DEC save/restore (ESC 7 / ESC 8) around the composed buffer.
  • Render output must respect ShouldEmitAnsi(); plain mode emits text layout without motion sequences.
  • Controls must not introduce new syscalls; writes go through Console I/O streams.

Implementation anchors

  • compiler/corelib/packages/console/src/Console/Controls/
  • Tests: ControlsFrameTests.bd, ControlsPanelTests.bd, ControlsProgressBarTests.bd, ControlsLayoutTests.bd

No open decisions. Closed choices are normative ADRs under adr/ (D-CORE-TERM-0040, D-CORE-TERM-0041); use the reader ADRs tab for expandable detail.

Articles