void scheduleRedraw() { var copiedLine = CopyLine(Line); Action action = () => Dispatcher.InvokeAsync(() => redraw(copiedLine)); Terminal.AddDeferChangesCallback(this, action); }
void scheduleRedraw() { Action action = () => Dispatcher.Invoke(redraw); Terminal.AddDeferChangesCallback(this, action); }