v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-18 08:40:35 -07:00

SetTermTitle

This commit is contained in:
eeeXun 2022-10-22 23:34:30 +08:00
parent 165c4a4a70
commit 374bd4c0e1
2 changed files with 5 additions and 2 deletions

View File

@ -25,8 +25,7 @@ var (
) )
func main() { func main() {
// result, _ := translator.Translate("Hello world\nApple\nbumper") SetTermTitle("GTT")
// fmt.Println(result)
configInit() configInit()
window.colorInit() window.colorInit()
uiInit() uiInit()

View File

@ -8,3 +8,7 @@ func IndexOf(candidate string, arr []string) int {
} }
return -1 return -1
} }
func SetTermTitle(title string) {
print("\033]0;" , title , "\007")
}