NetworkManager/clients/cli
Lubomir Rintel bcc9e58bfe cli: allow setting the colors with terminal-colors.d(5)
The present version of the specification is somewhat unclear at times,
Unclear points were discussed with the maintainers [1] and probably
some new version will address those.

https://www.spinics.net/lists/util-linux-ng/msg15222.html

Until then here's how the implementation copes with ambiguities
(after the discussion with util-linux maintainers):

1.) It is unclear whether multiple .schem files should override each
    other or be merged. We use the overriding behavior -- take the
    highest priority one and ignore the rest.

2.) We assume "name.schem" is more specific than "@term.schem".

3.) We assume the "Color name" are to be used as aliases for the color
    sequences and translate them to ANSI escape sequences.

4.) The "Escape sequences" are of no use since the specification
    pretty much assumes an ANSI terminal and none of the sequences make
    any sense in ANSI color codes. We don't support them.
    accept that.

5.) We don't implement TERMINAL_COLORS_DEBUG because it's unspecified
    what should it do.
2018-05-10 14:36:58 +02:00
..
agent.c all: remove consecutive empty lines 2018-04-30 16:24:52 +02:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c cli: use a palette to implement coloring 2018-05-10 14:36:58 +02:00
common.h cli: merge IPv4 and IPv6 variants of print_dhcp_config() 2018-04-23 15:43:39 +02:00
connections.c cli: allow setting the colors with terminal-colors.d(5) 2018-05-10 14:36:58 +02:00
connections.h cli: use a palette to implement coloring 2018-05-10 14:36:58 +02:00
devices.c cli: use a palette to implement coloring 2018-05-10 14:36:58 +02:00
devices.h cli: use a palette to implement coloring 2018-05-10 14:36:58 +02:00
general.c cli: use a palette to implement coloring 2018-05-10 14:36:58 +02:00
general.h cli: output a short summary of devices when called without arguments 2016-07-19 14:29:05 +02:00
meson.build cli: allow setting the colors with terminal-colors.d(5) 2018-05-10 14:36:58 +02:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c cli: allow setting the colors with terminal-colors.d(5) 2018-05-10 14:36:58 +02:00
nmcli.h cli: allow setting the colors with terminal-colors.d(5) 2018-05-10 14:36:58 +02:00
polkit-agent.c cli: rework callbacks in NMPolkitListener to use one vtable structure 2018-04-16 16:03:14 +02:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings.c all: use the elvis operator wherever possible 2018-05-10 14:36:58 +02:00
settings.h cli: move setting creation to meta data 2017-04-12 14:12:20 +02:00
utils.c cli: use a palette to implement coloring 2018-05-10 14:36:58 +02:00
utils.h cli: use a palette to implement coloring 2018-05-10 14:36:58 +02:00