summaryrefslogtreecommitdiff
path: root/title.go
diff options
context:
space:
mode:
authorKurenai <[email protected]>2021-10-14 20:15:15 +0800
committerKurenai <[email protected]>2021-10-14 20:15:15 +0800
commit6ed59f73a2f6a53246ff29fdca0a73f3208352f8 (patch)
tree88831f74800a25727d4683191b8ddfc2026ef1a1 /title.go
parentafdf70773acc30668fbcee62eb9d663fef54365d (diff)
Upgrade to 3.0.1
- 脱离对C#版本AssFontSubset的依赖 - 增加-a选项,可重复使用以代替AssFontSubset原有的功能 - 修正替换字体名称的正则表达式
Diffstat (limited to 'title.go')
-rw-r--r--title.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/title.go b/title.go
new file mode 100644
index 0000000..a67e1ec
--- /dev/null
+++ b/title.go
@@ -0,0 +1,9 @@
+//go:build !windows
+
+package main
+
+import "fmt"
+
+func setWindowTitle(title string) {
+ fmt.Printf("\033]0;%s\007", title)
+}