mirror of https://git.sr.ht/~rjarry/aerc
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
404 B
Go
27 lines
404 B
Go
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
|
|
}
|