[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[868c7c2] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[c6b192c] | 7 | <!ENTITY xterm-download-http "https://invisible-mirror.net/archives/xterm/xterm-&xterm-version;.tgz">
|
---|
[5ed4f0d] | 8 | <!ENTITY xterm-download-ftp " ">
|
---|
[5a7a4a17] | 9 | <!ENTITY xterm-md5sum "a2d01541aaff57ecae31b7b03c59c525">
|
---|
| 10 | <!ENTITY xterm-size "1.6 MB">
|
---|
[d227e1c7] | 11 | <!ENTITY xterm-buildsize "15 MB">
|
---|
[eea37d1] | 12 | <!ENTITY xterm-time "0.1 SBU (with parallelism=4)">
|
---|
[868c7c2] | 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 |
|
---|
[71df408] | 28 | <para>
|
---|
| 29 | <application>xterm</application> is a terminal emulator for
|
---|
| 30 | the X Window System.
|
---|
| 31 | </para>
|
---|
[868c7c2] | 32 |
|
---|
[e03aea8] | 33 | ¬-katamari;
|
---|
| 34 |
|
---|
[d4dc5bae] | 35 | &lfs122_checked;
|
---|
[1ed7820] | 36 |
|
---|
[868c7c2] | 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
[71df408] | 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url="&xterm-download-http;"/>
|
---|
| 42 | </para>
|
---|
[868c7c2] | 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
[71df408] | 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&xterm-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
[868c7c2] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[71df408] | 50 | <para>
|
---|
| 51 | Download MD5 sum: &xterm-md5sum;
|
---|
| 52 | </para>
|
---|
[868c7c2] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[71df408] | 55 | <para>
|
---|
| 56 | Download size: &xterm-size;
|
---|
| 57 | </para>
|
---|
[868c7c2] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[71df408] | 60 | <para>
|
---|
| 61 | Estimated disk space required: &xterm-buildsize;
|
---|
| 62 | </para>
|
---|
[868c7c2] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[71df408] | 65 | <para>
|
---|
| 66 | Estimated build time: &xterm-time;
|
---|
| 67 | </para>
|
---|
[868c7c2] | 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect3">xterm Dependencies</bridgehead>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[71df408] | 74 | <para role="required">
|
---|
[5818e21] | 75 | <xref linkend="luit"/>
|
---|
[71df408] | 76 | </para>
|
---|
[868c7c2] | 77 |
|
---|
[124f752c] | 78 | <bridgehead renderas="sect4">Required (at runtime)</bridgehead>
|
---|
| 79 | <para role="required">
|
---|
[e180a646] | 80 | A monospace TTF or OTF font such as
|
---|
[e71a98d9] | 81 | <xref role="runtime" linkend="dejavu-fonts"/>
|
---|
[124f752c] | 82 | </para>
|
---|
| 83 |
|
---|
| 84 |
|
---|
[38b3eab] | 85 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 86 | <para role="optional">
|
---|
[8404399] | 87 | <xref linkend="emacs"/>, <!-- looks for ctags/etags -->
|
---|
[abfacaf] | 88 | <xref linkend="pcre2"/>,
|
---|
[38b3eab] | 89 | <xref linkend="valgrind"/> and
|
---|
[87fc185] | 90 | <ulink url="https://www.nongnu.org/man2html/">man2html</ulink>
|
---|
[38b3eab] | 91 | </para>
|
---|
| 92 |
|
---|
[6e43b142] | 93 |
|
---|
[868c7c2] | 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2 role="installation">
|
---|
| 97 | <title>Installation of xterm</title>
|
---|
| 98 |
|
---|
[71df408] | 99 | <para>
|
---|
| 100 | Install <application>xterm</application> by running the
|
---|
| 101 | following commands:
|
---|
| 102 | </para>
|
---|
[868c7c2] | 103 |
|
---|
[5597c6eb] | 104 | <screen><userinput>sed -i '/v0/{n;s/new:/new:kb=^?:/}' termcap &&
|
---|
| 105 | printf '\tkbs=\\177,\n' >> terminfo &&
|
---|
[5f26d66f] | 106 |
|
---|
| 107 | TERMINFO=/usr/share/terminfo \
|
---|
| 108 | ./configure $XORG_CONFIG \
|
---|
[bbe9eba0] | 109 | --with-app-defaults=/etc/X11/app-defaults &&
|
---|
[5f26d66f] | 110 |
|
---|
[868c7c2] | 111 | make</userinput></screen>
|
---|
| 112 |
|
---|
[8ddf6d5] | 113 | <!--
|
---|
[dadb1c9f] | 114 | there is a 'make check' but I haven't found a description
|
---|
[8ddf6d5] | 115 | how the output should look like
|
---|
| 116 | -->
|
---|
[71df408] | 117 | <para>
|
---|
| 118 | This package does not come with a test suite.
|
---|
| 119 | </para>
|
---|
[868c7c2] | 120 |
|
---|
[71df408] | 121 | <para>
|
---|
| 122 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 123 | </para>
|
---|
[868c7c2] | 124 |
|
---|
[032cdc3] | 125 | <screen role="root"><userinput>make install &&
|
---|
[7788630d] | 126 |
|
---|
[0ecaac7] | 127 | mkdir -pv /usr/share/applications &&
|
---|
[7788630d] | 128 | cp -v *.desktop /usr/share/applications/</userinput></screen>
|
---|
[868c7c2] | 129 |
|
---|
| 130 | </sect2>
|
---|
| 131 |
|
---|
[e4a21ed] | 132 | <sect2 role="commands">
|
---|
| 133 | <title>Command Explanations</title>
|
---|
[fd7e0ed6] | 134 |
|
---|
[71df408] | 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>
|
---|
[e4a21ed] | 142 |
|
---|
[71df408] | 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>
|
---|
[39fce78] | 148 |
|
---|
[71df408] | 149 | <para>
|
---|
| 150 | <parameter>--with-app-defaults=...</parameter>: Sets the location
|
---|
| 151 | for the <filename class="directory">app-defaults</filename>
|
---|
| 152 | directory.
|
---|
| 153 | </para>
|
---|
[032cdc3] | 154 | <!--
|
---|
[71df408] | 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>
|
---|
[032cdc3] | 160 | -->
|
---|
[e4a21ed] | 161 | </sect2>
|
---|
| 162 |
|
---|
[6e43b142] | 163 | <sect2 role="configuration">
|
---|
| 164 | <title>Configuring xterm</title>
|
---|
| 165 |
|
---|
[71df408] | 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>
|
---|
[6e43b142] | 172 |
|
---|
[71df408] | 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>
|
---|
[6e43b142] | 179 |
|
---|
[88ccfed] | 180 | <screen role="root"><userinput>cat >> /etc/X11/app-defaults/XTerm << "EOF"
|
---|
[bb535fde] | 181 | <literal>*VT100*locale: true
|
---|
[6e43b142] | 182 | *VT100*faceName: Monospace
|
---|
[b79c3d81] | 183 | *VT100*faceSize: 10
|
---|
[9f0cf8f] | 184 | *backarrowKeyIsErase: true
|
---|
[bb535fde] | 185 | *ptyInitialErase: true</literal>
|
---|
[6e43b142] | 186 | EOF</userinput></screen>
|
---|
| 187 |
|
---|
| 188 | </sect2>
|
---|
| 189 |
|
---|
[868c7c2] | 190 | <sect2 role="content">
|
---|
| 191 | <title>Contents</title>
|
---|
| 192 |
|
---|
| 193 | <segmentedlist>
|
---|
| 194 | <segtitle>Installed Programs</segtitle>
|
---|
[eb50ddde] | 195 | <segtitle>Installed Libraries</segtitle>
|
---|
| 196 | <segtitle>Installed Directories</segtitle>
|
---|
[868c7c2] | 197 |
|
---|
| 198 | <seglistitem>
|
---|
[33cf52e] | 199 | <seg>koi8rxterm, resize, uxterm, and xterm</seg>
|
---|
[eb50ddde] | 200 | <seg>None</seg>
|
---|
| 201 | <seg>None</seg>
|
---|
[868c7c2] | 202 | </seglistitem>
|
---|
| 203 | </segmentedlist>
|
---|
| 204 |
|
---|
[e4a21ed] | 205 | <variablelist>
|
---|
| 206 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 207 | <?dbfo list-presentation="list"?>
|
---|
| 208 | <?dbhtml list-presentation="table"?>
|
---|
| 209 |
|
---|
[33cf52e] | 210 | <varlistentry id="koi8rxterm">
|
---|
[eb50ddde] | 211 | <term><command>koi8rxterm</command></term>
|
---|
[33cf52e] | 212 | <listitem>
|
---|
[71df408] | 213 | <para>
|
---|
[4c24eb0a] | 214 | is a wrapper script to set up xterm with a KOI8-R locale
|
---|
[71df408] | 215 | </para>
|
---|
[33cf52e] | 216 | <indexterm zone="xterm2 koi8rxterm">
|
---|
| 217 | <primary sortas="b-koi8rxterm">koi8rxterm</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
[0d7900a] | 220 | </varlistentry>
|
---|
| 221 |
|
---|
[e4a21ed] | 222 | <varlistentry id="resize">
|
---|
[eb50ddde] | 223 | <term><command>resize</command></term>
|
---|
[e4a21ed] | 224 | <listitem>
|
---|
[71df408] | 225 | <para>
|
---|
| 226 | prints a shell command for setting the TERM and TERMCAP
|
---|
| 227 | environment variables to indicate the current size of xterm
|
---|
[4c24eb0a] | 228 | window
|
---|
[71df408] | 229 | </para>
|
---|
[e4a21ed] | 230 | <indexterm zone="xterm2 resize">
|
---|
| 231 | <primary sortas="b-resize">resize</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
| 236 | <varlistentry id="uxterm">
|
---|
[eb50ddde] | 237 | <term><command>uxterm</command></term>
|
---|
[e4a21ed] | 238 | <listitem>
|
---|
[71df408] | 239 | <para>
|
---|
| 240 | is a wrapper script that modifies the current locale to use
|
---|
[4c24eb0a] | 241 | UTF-8 and starts xterm with the proper settings
|
---|
[71df408] | 242 | </para>
|
---|
[e4a21ed] | 243 | <indexterm zone="xterm2 uxterm">
|
---|
| 244 | <primary sortas="b-uxterm">uxterm</primary>
|
---|
| 245 | </indexterm>
|
---|
| 246 | </listitem>
|
---|
| 247 | </varlistentry>
|
---|
| 248 |
|
---|
| 249 | <varlistentry id="xterm-bin">
|
---|
[eb50ddde] | 250 | <term><command>xterm</command></term>
|
---|
[e4a21ed] | 251 | <listitem>
|
---|
[71df408] | 252 | <para>
|
---|
[4c24eb0a] | 253 | is a terminal emulator for the X Window System
|
---|
[71df408] | 254 | </para>
|
---|
[e4a21ed] | 255 | <indexterm zone="xterm2 xterm2">
|
---|
| 256 | <primary sortas="b-xterm2">xterm</primary>
|
---|
| 257 | </indexterm>
|
---|
| 258 | </listitem>
|
---|
| 259 | </varlistentry>
|
---|
| 260 |
|
---|
| 261 | </variablelist>
|
---|
| 262 |
|
---|
[868c7c2] | 263 | </sect2>
|
---|
| 264 |
|
---|
| 265 | </sect1>
|
---|