]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/less-variables.xml
man: standarize on one-line license header
[thirdparty/systemd.git] / man / less-variables.xml
CommitLineData
21ac6ff1
ZJS
1<?xml version="1.0"?>
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
12b42c76 3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
0307f791 4<!-- SPDX-License-Identifier: LGPL-2.1+ -->
f48f7543 5
21ac6ff1 6<refsect1>
6e16066e
LP
7 <title>Environment</title>
8
9 <variablelist class='environment-variables'>
10 <varlistentry id='pager'>
11 <term><varname>$SYSTEMD_PAGER</varname></term>
12
13 <listitem><para>Pager to use when <option>--no-pager</option> is not given; overrides
14 <varname>$PAGER</varname>. If neither <varname>$SYSTEMD_PAGER</varname> nor <varname>$PAGER</varname> are set, a
15 set of well-known pager implementations are tried in turn, including
98e9d710
ZJS
16 <citerefentry project='man-pages'><refentrytitle>less</refentrytitle><manvolnum>1</manvolnum></citerefentry> and
17 <citerefentry project='man-pages'><refentrytitle>more</refentrytitle><manvolnum>1</manvolnum></citerefentry>, until one is found. If
6e16066e
LP
18 no pager implementation is discovered no pager is invoked. Setting this environment variable to an empty string
19 or the value <literal>cat</literal> is equivalent to passing <option>--no-pager</option>.</para></listitem>
20 </varlistentry>
21
22 <varlistentry id='less'>
23 <term><varname>$SYSTEMD_LESS</varname></term>
24
25 <listitem><para>Override the options passed to <command>less</command> (by default
6432da6a
ZJS
26 <literal>FRSXMK</literal>).</para>
27
28 <para>If the value of <varname>$SYSTEMD_LESS</varname> does not include <literal>K</literal>,
29 and the pager that is invoked is <command>less</command>,
30 <keycombo><keycap>Ctrl</keycap><keycap>C</keycap></keycombo> will be ignored by the
31 executable. This allows <command>less</command> to handle
32 <keycombo><keycap>Ctrl</keycap><keycap>C</keycap></keycombo> itself.</para></listitem>
6e16066e
LP
33 </varlistentry>
34
35 <varlistentry id='lesscharset'>
36 <term><varname>$SYSTEMD_LESSCHARSET</varname></term>
37
38 <listitem><para>Override the charset passed to <command>less</command> (by default <literal>utf-8</literal>, if
39 the invoking terminal is determined to be UTF-8 compatible).</para></listitem>
40 </varlistentry>
41
42 </variablelist>
21ac6ff1 43</refsect1>