Improved interface
This commit is contained in:
parent
cd70550a0a
commit
6db2852d9e
5 changed files with 58 additions and 20 deletions
|
@ -4,11 +4,5 @@ import (
|
|||
"os"
|
||||
)
|
||||
|
||||
// These constants represent the escape codes needed to display color in terminals.
|
||||
const (
|
||||
format = "\x1b[38;2;%d;%d;%dm%s\x1b[0m"
|
||||
formatLine = "\x1b[38;2;%d;%d;%dm%s\n\x1b[0m"
|
||||
)
|
||||
|
||||
// Terminal is a boolean that indicates if we're in a terminal with truecolor support.
|
||||
var Terminal = os.Getenv("COLORTERM") == "truecolor"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue