Author: igor
Date: Sun Aug 3 14:36:57 2014
New Revision: 13817
Log:
make xterm installation instructions more portable
Modified:
trunk/BOOK/x/installing/xterm.xml
Modified: trunk/BOOK/x/installing/xterm.xml
==============================================================================
--- trunk/BOOK/x/installing/xterm.xml Sun Aug 3 10:22:22 2014 (r13816)
+++ trunk/BOOK/x/installing/xterm.xml Sun Aug 3 14:36:57 2014 (r13817)
@@ -74,8 +74,8 @@
<para>Install <application>xterm</application> by running the
following commands:</para>
-<screen><userinput>sed -i '/v0/,+1s/new:/new:kb=^?:/' termcap &&
-echo -e '\tkbs=\\177,' >> terminfo &&
+<screen><userinput>sed -i '/v0/{n;s/new:/new:kb=^?:/}' termcap &&
+printf '\tkbs=\\177,\n' >> terminfo &&
TERMINFO=/usr/share/terminfo \
./configure $XORG_CONFIG \
@@ -97,7 +97,7 @@
<title>Command Explanations</title>
<para><command>sed -i ... termcap</command>,
- <command>echo ... >> terminfo</command>: These commands modify the terminal
+ <command>printf ... >> terminfo</command>: These commands modify the
terminal
description, so that the Backspace key is expected to send the character
with ASCII code 127, for consistency with the Linux console.</para>
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page