fix: platform that fails to set vt100

This commit is contained in:
源文雨
2023-03-01 21:13:18 +08:00
parent 6f96c389c4
commit 8f9a396821
2 changed files with 18 additions and 9 deletions

14
console/console_ansi.go Normal file
View File

@@ -0,0 +1,14 @@
//go:build !windows
// Package console sets console's behavior on init
package console
import (
"fmt"
"github.com/FloatTech/ZeroBot-Plugin/kanban/banner"
)
func init() {
fmt.Print("\033]0;ZeroBot-Blugin " + banner.Version + " " + banner.Copyright + "\007")
}