Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Design model

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

Document design model for the Console Capabilities feature: role-specific normative detail beyond the feature hub.

  • Feature hub: Console Capabilities
  • Sibling articles in this bundle (design model, contracts, flow, examples, verification)
FieldMeaning
isTtystdout (fd 1) is a terminal
colorDisabledNO_COLOR set
colorForcedFORCE_COLOR set
modelProbed ColorModel before strip

ProbeStdout() composes the record from Platform.Terminal.IsAtty(1) and environment helpers.

VariantTypical trigger
Basic8Reserved for minimal terminals
Basic16Default when stripped or TERM=xterm-color
Indexed256TERM=xterm-256color or generic TERM set
TrueColorCOLORTERM set (e.g. truecolor)

Ansi.Sgr maps requested RGB to the effective model after ShouldStripColor.

ShouldEmitAnsi() is equivalent to !ShouldStripColor(ProbeStdout()). All gated escape helpers consult this predicate; see ANSI escape model / flow and algorithm.

See the verification and traceability article in this bundle and compiler/corelib/beskid_corelib/tests/corelib_tests/src/console/.