...

Source file src/github.com/mattn/go-colorable/_example/title/main.go

Documentation: github.com/mattn/go-colorable/_example/title

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"os"
     6  
     7  	. "github.com/mattn/go-colorable"
     8  )
     9  
    10  func main() {
    11  	out := NewColorableStdout()
    12  	fmt.Fprint(out, "\x1B]0;TITLE Changed\007(See title and hit any key)")
    13  	var c [1]byte
    14  	os.Stdin.Read(c[:])
    15  }
    16  

View as plain text