XtermSharp started with a TerminalDelegate pattern to notify of events, and overtime got a handful of .NET-style events later on added. This was because the TerminalDelegate was useful for Terminal, but the higher-level constructs did not use this.
I want to make XtermSharp mirror the design of SwiftTerm, where the notification pattern is always the delegate, even if this means re-publishing events to other delegates.
So for example, the TerminalView for AppKit implements TerminalDelegate and in addition, reports events via its own TerminalViewDelegate and so on.
XtermSharp started with a TerminalDelegate pattern to notify of events, and overtime got a handful of .NET-style events later on added. This was because the TerminalDelegate was useful for Terminal, but the higher-level constructs did not use this.
I want to make XtermSharp mirror the design of SwiftTerm, where the notification pattern is always the delegate, even if this means re-publishing events to other delegates.
So for example, the
TerminalView
for AppKit implementsTerminalDelegate
and in addition, reports events via its ownTerminalViewDelegate
and so on.