migueldeicaza / XtermSharp

XTerm emulator as a .NET library
MIT License
161 stars 34 forks source link

Events in XtermSharp #61

Open migueldeicaza opened 4 years ago

migueldeicaza commented 4 years ago

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.