Author: bdubbs Date: 2005-07-27 22:56:52 -0600 (Wed, 27 Jul 2005) New Revision: 4814
Modified: trunk/BOOK/introduction/welcome/changelog.xml trunk/BOOK/postlfs/config/logon.xml Log: Updated escape sequence discussion in /etc/issue discussion in Chapter 3 Modified: trunk/BOOK/introduction/welcome/changelog.xml =================================================================== --- trunk/BOOK/introduction/welcome/changelog.xml 2005-07-28 04:46:42 UTC (rev 4813) +++ trunk/BOOK/introduction/welcome/changelog.xml 2005-07-28 04:56:52 UTC (rev 4814) @@ -25,6 +25,11 @@ <itemizedlist> <listitem> + <para>July 27th 2005 [bdubbs]: Updated escape sequence explanation + in the /etc/issue discussion in Chapter 3.</para> + </listitem> + + <listitem> <para>July 27th 2005 [tushar]: Updated to aspell-0.60.3.</para> </listitem> Modified: trunk/BOOK/postlfs/config/logon.xml =================================================================== --- trunk/BOOK/postlfs/config/logon.xml 2005-07-28 04:46:42 UTC (rev 4813) +++ trunk/BOOK/postlfs/config/logon.xml 2005-07-28 04:56:52 UTC (rev 4814) @@ -33,24 +33,31 @@ configuration file and will <emphasis>not</emphasis> interpret the escape sequences shown below.</para> - <para>One of the most common things which people want to do is clear - the screen at each logon. The easiest way of doing that is to put a "clear" - escape sequence into <filename>/etc/issue</filename>. A simple way of - doing this is to issue the command <command>clear > /etc/issue</command>. - This will insert the relevant escape code into the start of the + <para>One of the most common things which people want to do is clear the + screen at each logon. The easiest way of doing that is to put a "clear" + escape sequence into <filename>/etc/issue</filename>. A simple way of doing + this is to issue the command <command>clear > /etc/issue</command>. This + will insert the relevant escape code into the start of the <filename>/etc/issue</filename> file. Note that if you do this, when you - edit the file, you should leave the ^[c character on the first line alone.</para> + edit the file, you should leave the characters (normally '^[[H^[[2J') on the + first line alone.</para> + + <note><para>Terminal escape sequences are special codes recognized by the + terminal. The ^[ represents an ASCII ESC character. The sequence ESC [ H + puts the cursor in the upper left hand corner of the screen and ESC 2 J + erases the screen. For more information on terminal escape sequences see + <ulink url='http://rtfm.etla.org/xterm/ctlseq.html'/></para></note> - <para>The following escape sequences are recognized by <command>agetty</command> + <para>The following sequences are recognized by <command>agetty</command> (the program which usually parses <filename>/etc/issue</filename>). This information is from <command>man agetty</command> where you can find extra information about the logon process.</para> - <para>The <filename>issue</filename> file can contain certain escape codes to - display various information. All escape codes consist of a backslash (\) - immediately followed by one of the letters explained below (so - <option>\d</option> in <filename>/etc/issue</filename> would - insert the current date).</para> + <para>The <filename>issue</filename> file can contain certain character + sequences to display various information. All <filename>issue</filename> + sequences consist of a backslash (\) immediately followed by one of the + letters explained below (so <option>\d</option> in + <filename>/etc/issue</filename> would insert the current date).</para> <screen><literal>b Insert the baudrate of the current line. d Insert the current date. -- http://linuxfromscratch.org/mailman/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page