apognu / tuigreet

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

Interpret ANSI color codes in /etc/issue #151

Closed apognu closed 3 months ago

apognu commented 3 months 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).