Skip to content

IRepaintableWorkloadAdapter

Namespace: Hex1b

Assembly: Hex1b.dll

Optional capability marker for implementations that maintain an internal "last frame painted" diff cache and can be asked to drop it so the next frame is emitted in full.

csharp
public interface IRepaintableWorkloadAdapter

Methods

RequestFullRepaint()

Discards any cached diff state and requests that the workload's next frame be emitted as a full screen repaint.

csharp
void RequestFullRepaint()

Remarks

Implemented by : when the surrounding terminal's screen state has been reset out from under the app (e.g. by swapping workloads and synthesising a reset sequence), the app's diff cache no longer reflects the actual on-screen state. Calling tells the app to behave as if the next frame is the first frame.

Workloads whose output is fully replayed by the producer on (re)connect — HMP1's StateSync frame is the canonical case — do not need this capability.

Released under the MIT License.