On Wed, 28 Jun 2023 10:17:45 -0700
stan via users <users(a)lists.fedoraproject.org> wrote:
On Wed, 28 Jun 2023 17:08:38 +0100
Patrick O'Callaghan <pocallaghan(a)gmail.com> wrote:
> See also 'man journalctl' and search for PAGER.
This is also relevant. Unfortunately, it seems that journalctl
ignores the input of SYSTEMD_LESS. It is hard to tell, because there
is no example of the kind of input it wants or whether it only accepts
options without arguments, as the default options all are. I would
probably have to look at the journalctl code to determine if they are
hard coded into the program. There is no configuration file to set
them in any case.
So, the code for journalctl shows it reading the options from the
variables, and invoking less with those options, but it doesn't seem to
affect the behavior of running journalctl, or at least the colors don't
change. Maybe I'll look more closely at some point, but no joy for now.