Added terminal detection
This commit is contained in:
18
README.md
18
README.md
@ -4,10 +4,9 @@ Adds color to your terminal output.
|
||||
|
||||
## Features
|
||||
|
||||
- RGB color space
|
||||
- LCH color space (oklch)
|
||||
- Truecolor terminal output
|
||||
- Zero dependencies (excluding tests)
|
||||
- ANSI colors
|
||||
- LCH colors
|
||||
- RGB colors
|
||||
|
||||
## Installation
|
||||
|
||||
@ -28,7 +27,6 @@ orange.Println("orange text")
|
||||
## Tests
|
||||
|
||||
```
|
||||
PASS: TestFprint
|
||||
PASS: TestPrint
|
||||
PASS: TestPrintf
|
||||
PASS: TestPrintln
|
||||
@ -41,12 +39,10 @@ coverage: 100.0% of statements
|
||||
## Benchmarks
|
||||
|
||||
```
|
||||
BenchmarkRGB-12 1000000000 0.3211 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkLCH-12 4767306 251.8 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkFprint-12 4869368 245.7 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkFprintRaw-12 23155356 43.73 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkPrint-12 358099 3560 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkPrintRaw-12 3144412 378.9 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkRGB-12 1000000000 0.3141 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkLCH-12 4780176 250.9 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkPrint-12 375394 3343 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkPrintRaw-12 3105022 387.3 ns/op 0 B/op 0 allocs/op
|
||||
```
|
||||
|
||||
## License
|
||||
|
Reference in New Issue
Block a user