From d847073bdf67a2fd8c8695dbacbe010bcbfd27c8 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Thu, 6 Oct 2022 11:46:40 -0500 Subject: events: introduce AercMsg and QueueRedraw Add AercMsg as a main interface for internal communication in aerc in preparation for a main event loop. Add a QueueRedraw function to to trigger a redraw. This will be needed for widgets which should be drawn after some delay (completions, terminal, for example) Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- lib/ui/interfaces.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/ui/interfaces.go') diff --git a/lib/ui/interfaces.go b/lib/ui/interfaces.go index 7e117256..8a62ecf0 100644 --- a/lib/ui/interfaces.go +++ b/lib/ui/interfaces.go @@ -4,6 +4,9 @@ import ( "github.com/gdamore/tcell/v2" ) +// AercMsg is used to communicate within aerc +type AercMsg interface{} + // Drawable is a UI component that can draw. Unless specified, all methods must // only be called from a single goroutine, the UI goroutine. type Drawable interface { -- cgit