Skip to content

Hmp1Role

Namespace: Hex1b

Assembly: Hex1b.dll

Role hint sent to the producer in the frame. The producer's presentation adapter does not change behaviour based on this value (in this iteration); it is preserved as a UX-discoverability hint reachable through server-side consumer code.

csharp
public enum Hmp1Role

Fields

Primary

Hints that this client wants to drive the producer's PTY dimensions. The producer does not currently auto-promote based on this hint; callers must still call .

Returns: Hmp1Role

csharp
Primary = 0

Secondary

Hints that this client is happy to follow another peer's dimensions. Default for most consumers.

Returns: Hmp1Role

csharp
Secondary = 1

Remarks

The naming reflects the runtime concept of "primary" — the peer whose chosen dimensions drive the producer PTY's size. Secondaries are still fully interactive (input passes through, primary requests can be made at any time); they simply don't drive the producer's dimensions until they're promoted to primary.

Released under the MIT License.