apognu / tuigreet

Graphical console greeter for greetd
GNU General Public License v3.0
925 stars 41 forks source link

Interpret ANSI color codes in /etc/issue #151

Closed apognu closed 1 month ago

apognu commented 1 month ago

Right now, reading /etc/issue interprets some of the replacements that getty does, but ignores ANSI color escape sequences that some people uses to beautify the output.

This is an attempt at taking them into account to, in the best case, add the colors to tuigreet, or remove them if we can't manage to do it nicely.

Paragraph wrapping and height detection will have to be refactored (since we cannot rely on the number of characters and lines anymore).