LineGetter.handleLinkEvent

Gives a convenience hook for subclasses to handle my terminal's hyperlink extension.

More...
class LineGetter
void delegate(LinkEvent ev, LineGetter lg) handleLinkEvent;

Detailed Description

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.

See Also

Meta

History

Added April 2, 2021.