]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/less-variables.xml
Merge pull request #14003 from keszybz/user-path-configurable
[thirdparty/systemd.git] / man / less-variables.xml
CommitLineData
21ac6ff1 1<?xml version="1.0"?>
3a54a157
ZJS
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
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
03909b1e
ZJS
28 <para>Users might want to change two options in particular:</para>
29
30 <variablelist class='environment-variables'>
31 <varlistentry>
32 <term><option>K</option></term>
33
34 <para>This option instructs the pager to exit immediately when
35 <keycombo><keycap>Ctrl</keycap><keycap>C</keycap></keycombo> is pressed. To allow
36 <command>less</command> to handle <keycombo><keycap>Ctrl</keycap><keycap>C</keycap></keycombo>
37 itself to switch back to the pager command prompt, unset this option.</para>
38
39 <para>If the value of <varname>$SYSTEMD_LESS</varname> does not include <literal>K</literal>,
40 and the pager that is invoked is <command>less</command>,
41 <keycombo><keycap>Ctrl</keycap><keycap>C</keycap></keycombo> will be ignored by the
42 executable, and needs to be handled by the pager.</para>
43 </varlistentry>
44
45 <varlistentry>
46 <term><option>X</option></term>
47
48 <para>This option instructs the pager to not send termcap initialization and deinitialization
49 strings to the terminal. It is set by default to allow command output to remain visible in the
50 terminal even after the pager exits. Nevertheless, this prevents some pager functionality from
51 working, in particular paged output cannot be scrolled with the mouse.</para>
52 </varlistentry>
53 </variablelist>
54
55 <para>See
56 <citerefentry project='man-pages'><refentrytitle>less</refentrytitle><manvolnum>1</manvolnum></citerefentry>
57 for more discussion.</para></listitem>
6e16066e
LP
58 </varlistentry>
59
60 <varlistentry id='lesscharset'>
61 <term><varname>$SYSTEMD_LESSCHARSET</varname></term>
62
63 <listitem><para>Override the charset passed to <command>less</command> (by default <literal>utf-8</literal>, if
64 the invoking terminal is determined to be UTF-8 compatible).</para></listitem>
65 </varlistentry>
66
67 </variablelist>
21ac6ff1 68</refsect1>