1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 15:37:23 +00:00

New clean command for messed up windows

This commit is contained in:
Gregory Rudolph
2019-10-08 12:51:33 -04:00
parent da822c4876
commit 12a5722d3b

20
cmdClean.go Normal file
View File

@ -0,0 +1,20 @@
// +build !rm_basic_commands allcommands cleancmd
package main
func init() {
command := Command{
Cmd: []string{"clean", "c"},
Description: "- Clean, or redraw chat view",
Help: "",
Exec: cmdClean,
}
RegisterCommand(command)
}
func cmdClean(cmd []string) {
clearView("Chat")
go populateChat()
}