aboutsummaryrefslogtreecommitdiffstats
path: root/commands/redraw.go
blob: be25d5bdb5fb9acf021348e67dcd07a04b3ce491 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package commands

import "git.sr.ht/~rjarry/aerc/lib/ui"

type Redraw struct{}

func init() {
	Register(Redraw{})
}

func (Redraw) Description() string {
	return "Force a full redraw of the screen."
}

func (Redraw) Context() CommandContext {
	return GLOBAL
}

func (Redraw) Aliases() []string {
	return []string{"redraw"}
}

func (Redraw) Execute(args []string) error {
	ui.QueueRefresh()
	return nil
}