ITerminalLifecycleAwarePresentationAdapter
Namespace: Hex1b
Assembly: Hex1b.dll
Extended presentation adapter interface that receives terminal lifecycle notifications.
csharp
public interface ITerminalLifecycleAwarePresentationAdapter : IHex1bTerminalPresentationAdapter, IAsyncDisposableMethods
TerminalCompleted(int)
Called when the terminal has completed execution.
Parameters:
exitCode(Int32): The exit code from the terminal's run callback or workload.
csharp
void TerminalCompleted(int exitCode)TerminalCreated(Hex1bTerminal)
Called when the terminal instance is created and associated with this adapter.
Parameters:
terminal(Hex1bTerminal): The terminal instance.
csharp
void TerminalCreated(Hex1bTerminal terminal)TerminalStarted()
Called when the terminal has started and is ready to process I/O.
csharp
void TerminalStarted()Remarks
When a presentation adapter implements this interface, the terminal will call the lifecycle methods at appropriate points during terminal execution.
This is useful for presentation adapters that need to track the terminal's state, forward input to the terminal, or trigger UI updates when the terminal starts or stops.