]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/less-variables.xml
Correct more spelling errors.
[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">
21ac6ff1 4
f48f7543
ZJS
5<!--
6 SPDX-License-Identifier: LGPL-2.1+
f48f7543
ZJS
7-->
8
21ac6ff1 9<refsect1>
6e16066e
LP
10 <title>Environment</title>
11
12 <variablelist class='environment-variables'>
13 <varlistentry id='pager'>
14 <term><varname>$SYSTEMD_PAGER</varname></term>
15
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
98e9d710
ZJS
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
6e16066e
LP
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>
23 </varlistentry>
24
25 <varlistentry id='less'>
26 <term><varname>$SYSTEMD_LESS</varname></term>
27
28 <listitem><para>Override the options passed to <command>less</command> (by default
6432da6a
ZJS
29 <literal>FRSXMK</literal>).</para>
30
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>
6e16066e
LP
36 </varlistentry>
37
38 <varlistentry id='lesscharset'>
39 <term><varname>$SYSTEMD_LESSCHARSET</varname></term>
40
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>
43 </varlistentry>
44
45 </variablelist>
21ac6ff1 46</refsect1>