Currently libeinfo checks against a static list of color terminals. This approach requires new color terminals to be added to the list resulting in maintainer burden.
To address this, my proposal is to statically link libtinfo, to make it available early in boot, and using it to check for a color terminal at runtime. Additionally, for distros like Alpine, a build flag could be added to enable or disable the usage of libtinfo.
I would be happy to submit a PR for this if the maintainers are open to the approach.
Currently libeinfo checks against a static list of color terminals. This approach requires new color terminals to be added to the list resulting in maintainer burden.
To address this, my proposal is to statically link libtinfo, to make it available early in boot, and using it to check for a color terminal at runtime. Additionally, for distros like Alpine, a build flag could be added to enable or disable the usage of libtinfo.
I would be happy to submit a PR for this if the maintainers are open to the approach.