package control import ( "fmt" "regexp" "strconv" "strings" "time" "unicode" "unicode/utf8" "golang.org/x/text/width" ) // Term is what the client said about its terminal (GITBAY_TERM). The // zero value is plain output: tab-separated rows, no header, no colour, // which is what stock ssh, the API and the web get. type Term struct { Cols int Color bool // TrueColor is 24-bit colour, for a label's own colour. TrueColor bool // Links is OSC 8 hyperlinks, for a reference's page. Links bool // Here is the repository the CLI inferred from the clone it runs in, // so a suggested command can leave it out. Here string } // ParseTerm reads "[,