]> Sergey Matveev's repositories - btrtrc.git/blob - cmd/btrtrc/colour.go
cmd/btrtrc client
[btrtrc.git] / cmd / btrtrc / colour.go
1 package main
2
3 import (
4         "bytes"
5
6         "golang.org/x/term"
7 )
8
9 var (
10         Blue    string
11         Green   string
12         Magenta string
13         Red     string
14         Reset   string
15 )
16
17 func init() {
18         var b bytes.Buffer
19         t := term.NewTerminal(&b, "")
20         Blue = string(t.Escape.Blue)
21         Green = string(t.Escape.Green)
22         Magenta = string(t.Escape.Magenta)
23         Red = string(t.Escape.Red)
24         Reset = string(t.Escape.Reset)
25 }