systemctl: port to the new underline cell attribute
authorLennart Poettering <lennart@poettering.net>
Mon, 20 Nov 2023 11:06:44 +0000 (12:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Nov 2023 12:05:50 +0000 (13:05 +0100)
commit891abc9cf1d3d7afd7b740b4077551dcfb5f8e16
treef1f5ccc1b2bce6688feb40f7092feab7a3ce85f6
parentaab79f52784b4778ae0534452757d9fbf608076a
systemctl: port to the new underline cell attribute

And be more careful when adding color to log lines:

1. Apply color derived from load state only to load state (and in
   special cases to the circle at the beginning of the line)

2. Apply color derived from active/sub states only to active/sub states
   (and in special cases to the circle at the beginning of the line)

3. Special case the "exited" state of services, i.e. make the substate
   grey, as in this case the service is active, yet consumes no
   resources.

4. Cover the "inactive" state properly, by greying it our too

5. Downgrade the load state of "not-found" from red to yellow, since
   it's not really a case one needs to be come active on.
src/systemctl/systemctl-list-units.c