summaryrefslogtreecommitdiffstats
path: root/dependencies/pkg/mod/github.com/mattn/go-colorable@v0.1.13/_example/title/main.go
blob: 24da3db485cee5b8c1252ec2c837270343325252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main

import (
	"fmt"
	"os"

	. "github.com/mattn/go-colorable"
)

func main() {
	out := NewColorableStdout()
	fmt.Fprint(out, "\x1B]0;TITLE Changed\007(See title and hit any key)")
	var c [1]byte
	os.Stdin.Read(c[:])
}