mirror of
https://github.com/Rudi9719/kbtui.git
synced 2026-03-22 12:07:23 +00:00
New clean command for messed up windows
This commit is contained in:
20
cmdClean.go
Normal file
20
cmdClean.go
Normal 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()
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user