aboutsummaryrefslogtreecommitdiff
path: root/output.go
diff options
context:
space:
mode:
authorWill Eccles <[email protected]>2019-04-04 12:28:34 -0400
committerWill Eccles <[email protected]>2019-04-04 12:28:34 -0400
commit87b1d2ba3bfa3e7b5478b360130c424fef52bfbf (patch)
treef7309607538455ef8bab7ee9777faa3574448df2 /output.go
parentRemoved abort on less than 16 colors generated (diff)
downloadschemer2-87b1d2ba3bfa3e7b5478b360130c424fef52bfbf.tar.xz
schemer2-87b1d2ba3bfa3e7b5478b360130c424fef52bfbf.zip
Added support for kitty, both input and output
Diffstat (limited to 'output.go')
-rw-r--r--output.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/output.go b/output.go
index 9441c33..3fbfce5 100644
--- a/output.go
+++ b/output.go
@@ -268,3 +268,18 @@ func printGnomeDConf(colors []color.Color) string {
output += "\n"
return output
}
+
+func printKittyTerm(colors []color.Color) string {
+ output := ""
+ for i, c := range colors {
+ cc := c.(color.NRGBA)
+ bytes := []byte{byte(cc.R), byte(cc.G), byte(cc.B)}
+ output += "color"
+ output += strconv.Itoa(i)
+ output += "\t#"
+ output += hex.EncodeToString(bytes)
+ output += "\n"
+ }
+
+ return output
+}