Closed socksthefennec closed 4 months ago
Hello and sorry for not getting to this PR for so long.
I took the liberty of rebasing, bumping copyright year, squashing, limiting allowed attrnames and adding some tests. Please take a look.
One more thing we'll need is a changelog entry.
This implements basic support for termux's colorschemes (
~/.termux/colors.properties
) through the new optionterminal.colors
. It takes an attribute set of strings and naively converts that to the key-value format termux expects, e.g.would become
I wasn't sure whether to use
attrsOf
orlazyAttrsOf
, so I chose the latter as a guess. I've mostly just copied over the implementation from what fonts do, I hope that's correct.There are a couple issues with this as it stands:
It works enough for my usecase, but there's certainly a lot that could be improved.