2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
6 SPDX-License-Identifier: LGPL-2.1+
10 <title>Environment
</title>
12 <variablelist class='environment-variables'
>
13 <varlistentry id='pager'
>
14 <term><varname>$SYSTEMD_PAGER
</varname></term>
16 <listitem><para>Pager to use when
<option>--no-pager
</option> is not given; overrides
17 <varname>$PAGER
</varname>. If neither
<varname>$SYSTEMD_PAGER
</varname> nor
<varname>$PAGER
</varname> are set, a
18 set of well-known pager implementations are tried in turn, including
19 <citerefentry project='man-pages'
><refentrytitle>less
</refentrytitle><manvolnum>1</manvolnum></citerefentry> and
20 <citerefentry project='man-pages'
><refentrytitle>more
</refentrytitle><manvolnum>1</manvolnum></citerefentry>, until one is found. If
21 no pager implementation is discovered no pager is invoked. Setting this environment variable to an empty string
22 or the value
<literal>cat
</literal> is equivalent to passing
<option>--no-pager
</option>.
</para></listitem>
25 <varlistentry id='less'
>
26 <term><varname>$SYSTEMD_LESS
</varname></term>
28 <listitem><para>Override the options passed to
<command>less
</command> (by default
29 <literal>FRSXMK
</literal>).
</para>
31 <para>If the value of
<varname>$SYSTEMD_LESS
</varname> does not include
<literal>K
</literal>,
32 and the pager that is invoked is
<command>less
</command>,
33 <keycombo><keycap>Ctrl
</keycap><keycap>C
</keycap></keycombo> will be ignored by the
34 executable. This allows
<command>less
</command> to handle
35 <keycombo><keycap>Ctrl
</keycap><keycap>C
</keycap></keycombo> itself.
</para></listitem>
38 <varlistentry id='lesscharset'
>
39 <term><varname>$SYSTEMD_LESSCHARSET
</varname></term>
41 <listitem><para>Override the charset passed to
<command>less
</command> (by default
<literal>utf-
8</literal>, if
42 the invoking terminal is determined to be UTF-
8 compatible).
</para></listitem>