This commit is contained in:
1-6
2023-08-09 10:21:56 +08:00
parent 2cbcfa1a5e
commit 70bad0cc52
11 changed files with 725 additions and 129 deletions
+3
View File
@@ -69,6 +69,9 @@ func main() {
a := &core.Factory{}
a.Init("terminal", "default", nil)
i := 0
a.SetIsAdmin(func(s string) bool {
return true
})
a.SetReplyHandler(func(m map[string]interface{}) string {
i++
fmt.Printf("\x1b[%dm%s \x1b[0m\n", 31, m[core.CONETNT])