source: x/installing/xterm.xml

trunk
Last change on this file was 032cdc3, checked in by Bruce Dubbs <bdubbs@…>, 10 days ago

Remove overwriting of terminfo data in xterm.

  • Property mode set to 100644
File size: 7.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY xterm-download-http "https://invisible-mirror.net/archives/xterm/xterm-&xterm-version;.tgz">
8 <!ENTITY xterm-download-ftp " ">
9 <!ENTITY xterm-md5sum "c3e71cfc6381d72fceb7165d324046d6">
10 <!ENTITY xterm-size "1.5 MB">
11 <!ENTITY xterm-buildsize "15 MB">
12 <!ENTITY xterm-time "0.2 SBU (with parallelism=4)">
13]>
14
15<sect1 id="xterm2" xreflabel="xterm-&xterm-version;">
16 <?dbhtml filename="xterm.html"?>
17
18
19 <title>xterm-&xterm-version;</title>
20
21 <indexterm zone="xterm2">
22 <primary sortas="a-xterm2">xterm</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to xterm</title>
27
28 <para>
29 <application>xterm</application> is a terminal emulator for
30 the X Window System.
31 </para>
32
33 &not-katamari;
34
35 &lfs121_checked;
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>
41 Download (HTTP): <ulink url="&xterm-download-http;"/>
42 </para>
43 </listitem>
44 <listitem>
45 <para>
46 Download (FTP): <ulink url="&xterm-download-ftp;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download MD5 sum: &xterm-md5sum;
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download size: &xterm-size;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Estimated disk space required: &xterm-buildsize;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated build time: &xterm-time;
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">xterm Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Required</bridgehead>
74 <para role="required">
75 <xref linkend="luit"/>
76 </para>
77
78 <bridgehead renderas="sect4">Required (at runtime)</bridgehead>
79 <para role="required">
80 A monospace TTF or OTF font such as
81 <xref role="runtime" linkend="dejavu-fonts"/>
82 </para>
83
84
85 <bridgehead renderas="sect4">Optional</bridgehead>
86 <para role="optional">
87 <xref linkend="emacs"/>, <!-- looks for ctags/etags -->
88 <xref linkend="pcre2"/>,
89 <xref linkend="valgrind"/> and
90 <ulink url="https://www.nongnu.org/man2html/">man2html</ulink>
91 </para>
92
93
94 </sect2>
95
96 <sect2 role="installation">
97 <title>Installation of xterm</title>
98
99 <para>
100 Install <application>xterm</application> by running the
101 following commands:
102 </para>
103
104<screen><userinput>sed -i '/v0/{n;s/new:/new:kb=^?:/}' termcap &amp;&amp;
105printf '\tkbs=\\177,\n' &gt;&gt; terminfo &amp;&amp;
106
107TERMINFO=/usr/share/terminfo \
108./configure $XORG_CONFIG \
109 --with-app-defaults=/etc/X11/app-defaults &amp;&amp;
110
111make</userinput></screen>
112
113 <!--
114 there is a 'make check' but i havn't found a description
115 how the output should look like
116 -->
117 <para>
118 This package does not come with a test suite.
119 </para>
120
121 <para>
122 Now, as the <systemitem class="username">root</systemitem> user:
123 </para>
124
125<screen role="root"><userinput>make install &amp;&amp;
126
127mkdir -pv /usr/share/applications &amp;&amp;
128cp -v *.desktop /usr/share/applications/</userinput></screen>
129
130 </sect2>
131
132 <sect2 role="commands">
133 <title>Command Explanations</title>
134
135 <para>
136 <command>sed -i ... termcap</command>,
137 <command>printf ... >> terminfo</command>:
138 These commands modify the terminal description so that the Backspace
139 key is expected to send the character with ASCII code 127. This is done
140 for consistency with the Linux console.
141 </para>
142
143 <para>
144 <envar>TERMINFO=/usr/share/terminfo</envar>: This ensures
145 that the <command>xterm</command> terminfo files are installed to the
146 system terminfo database.
147 </para>
148
149 <para>
150 <parameter>--with-app-defaults=...</parameter>: Sets the location
151 for the <filename class="directory">app-defaults</filename>
152 directory.
153 </para>
154<!--
155 <para>
156 <command>make install-ti</command>: This command installs corrected
157 terminfo description files for use with
158 <application>xterm</application>.
159 </para>
160-->
161 </sect2>
162
163 <sect2 role="configuration">
164 <title>Configuring xterm</title>
165
166 <para>
167 There are two ways to configure xterm. You can add the X resource
168 definitions to the user's <filename>~/.Xresources</filename> file, or
169 add them to the system-wide
170 <filename>$XORG_PREFIX/share/X11/app-defaults/Xterm</filename> file.
171 </para>
172
173 <para>
174 In order for xterm to follow the locale settings in the environment,
175 use TrueType fonts, and follow the Linux convention about the code sent by
176 the Backspace key, add the following definitions as the
177 <systemitem class="username">root</systemitem> user:
178 </para>
179
180<screen role="root"><userinput>cat &gt;&gt; /etc/X11/app-defaults/XTerm &lt;&lt; "EOF"
181<literal>*VT100*locale: true
182*VT100*faceName: Monospace
183*VT100*faceSize: 10
184*backarrowKeyIsErase: true
185*ptyInitialErase: true</literal>
186EOF</userinput></screen>
187
188 </sect2>
189
190 <sect2 role="content">
191 <title>Contents</title>
192
193 <segmentedlist>
194 <segtitle>Installed Programs</segtitle>
195 <segtitle>Installed Libraries</segtitle>
196 <segtitle>Installed Directories</segtitle>
197
198 <seglistitem>
199 <seg>koi8rxterm, resize, uxterm, and xterm</seg>
200 <seg>None</seg>
201 <seg>None</seg>
202 </seglistitem>
203 </segmentedlist>
204
205 <variablelist>
206 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
207 <?dbfo list-presentation="list"?>
208 <?dbhtml list-presentation="table"?>
209
210 <varlistentry id="koi8rxterm">
211 <term><command>koi8rxterm</command></term>
212 <listitem>
213 <para>
214 is a wrapper script to set up xterm with a KOI8-R locale
215 </para>
216 <indexterm zone="xterm2 koi8rxterm">
217 <primary sortas="b-koi8rxterm">koi8rxterm</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 <varlistentry id="resize">
223 <term><command>resize</command></term>
224 <listitem>
225 <para>
226 prints a shell command for setting the TERM and TERMCAP
227 environment variables to indicate the current size of xterm
228 window
229 </para>
230 <indexterm zone="xterm2 resize">
231 <primary sortas="b-resize">resize</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="uxterm">
237 <term><command>uxterm</command></term>
238 <listitem>
239 <para>
240 is a wrapper script that modifies the current locale to use
241 UTF-8 and starts xterm with the proper settings
242 </para>
243 <indexterm zone="xterm2 uxterm">
244 <primary sortas="b-uxterm">uxterm</primary>
245 </indexterm>
246 </listitem>
247 </varlistentry>
248
249 <varlistentry id="xterm-bin">
250 <term><command>xterm</command></term>
251 <listitem>
252 <para>
253 is a terminal emulator for the X Window System
254 </para>
255 <indexterm zone="xterm2 xterm2">
256 <primary sortas="b-xterm2">xterm</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 </variablelist>
262
263 </sect2>
264
265</sect1>
Note: See TracBrowser for help on using the repository browser.