commands/redraw.go
raw| 1 | package commands |
| 2 | |
| 3 | import "git.sr.ht/~rjarry/aerc/lib/ui" |
| 4 | |
| 5 | type Redraw struct{} |
| 6 | |
| 7 | func init() { |
| 8 | Register(Redraw{}) |
| 9 | } |
| 10 | |
| 11 | func (Redraw) Description() string { |
| 12 | return "Force a full redraw of the screen." |
| 13 | } |
| 14 | |
| 15 | func (Redraw) Context() CommandContext { |
| 16 | return GLOBAL |
| 17 | } |
| 18 | |
| 19 | func (Redraw) Aliases() []string { |
| 20 | return []string{"redraw"} |
| 21 | } |
| 22 | |
| 23 | func (Redraw) Execute(args []string) error { |
| 24 | ui.QueueRefresh() |
| 25 | return nil |
| 26 | } |