summaryrefslogtreecommitdiff
path: root/title.go
diff options
context:
space:
mode:
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)
+}