Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Examples

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

Document examples for the Console Terminal Events feature: role-specific normative detail beyond the feature hub.

  • Feature hub: Console Terminal Events
  • Sibling articles in this bundle (design model, contracts, flow, examples, verification)
Channel<ConsoleMessage> messages = Console.MessagesChannel();
ConsoleSize last = Console.QuerySize();
// spawn fiber: loop { Console.RunTick(messages, last); Receive and handle Resize }
OnResize hub = OnResize { lastSize: Console.QuerySize(), OnResize: ... };
Console.SubscribeOnResize(hub, handler);
Platform.Terminal.PollResizeHub(hub);

After Resize, call Console controls Frame.Render with the new ConsoleSize.

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