summaryrefslogtreecommitdiff
path: root/cmd/title.go
diff options
context:
space:
mode:
authorKurenai <[email protected]>2021-10-17 00:02:28 +0800
committerKurenai <[email protected]>2021-10-17 00:24:41 +0800
commit70a7c4edba281122c05ef46e9efffe5309ef8448 (patch)
tree9e22aa0754ec0bea7f040874dfe3d626a4549503 /cmd/title.go
parent41568b669ab6bf44e01c7b95584a03a9ce7de8eb (diff)
Bump to 3.1.1
Diffstat (limited to 'cmd/title.go')
-rw-r--r--cmd/title.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/title.go b/cmd/title.go
new file mode 100644
index 0000000..b292eb5
--- /dev/null
+++ b/cmd/title.go
@@ -0,0 +1,7 @@
+//go:build linux
+
+package main
+
+func setWindowTitle(title string) {
+ fmt.Printf("\033]0;%s\007", title)
+}