You can also handle these by filtering events before you pass them to workOnLine. That's still how I recommend handling any overrides or custom events, but making this a delegate is an easy way to inject handlers into an otherwise linear i/o application.
Does nothing if null.
It passes the event as well as the current line getter to the delegate. You may simply lg.addString(ev.text); lg.redraw(); in some cases.
Added April 2, 2021.
Gives a convenience hook for subclasses to handle my terminal's hyperlink extension.