Changeset 754c0de for postlfs


Ignore:
Timestamp:
07/28/2005 04:56:52 AM (19 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
718b162b
Parents:
60867ce
Message:

Updated escape sequence discussion in /etc/issue discussion in Chapter 3

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4814 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/config/logon.xml

    r60867ce r754c0de  
    3434  escape sequences shown below.</para>
    3535
    36   <para>One of the most common things which people want to do is clear
    37   the screen at each logon.  The easiest way of doing that is to put a "clear"
    38   escape sequence into <filename>/etc/issue</filename>.  A simple way of
    39   doing this is to issue the command <command>clear &gt; /etc/issue</command>.
    40   This will insert the relevant escape code into the start of the
     36  <para>One of the most common things which people want to do is clear the
     37  screen at each logon.  The easiest way of doing that is to put a "clear"
     38  escape sequence into <filename>/etc/issue</filename>.  A simple way of doing
     39  this is to issue the command <command>clear &gt; /etc/issue</command>.  This
     40  will insert the relevant escape code into the start of the
    4141  <filename>/etc/issue</filename> file.  Note that if you do this, when you
    42   edit the file, you should leave the ^[c character on the first line alone.</para>
     42  edit the file, you should leave the characters (normally '^[[H^[[2J') on the
     43  first line alone.</para>
     44 
     45  <note><para>Terminal escape sequences are special codes recognized by the
     46  terminal.  The ^[ represents an ASCII ESC character.  The sequence ESC [ H
     47  puts the cursor in the upper left hand corner of the screen and ESC 2 J
     48  erases the screen.  For more information on terminal escape sequences see
     49  <ulink url='http://rtfm.etla.org/xterm/ctlseq.html'/></para></note>
    4350
    44   <para>The following escape sequences are recognized by <command>agetty</command>
     51  <para>The following sequences are recognized by <command>agetty</command>
    4552  (the program which usually parses <filename>/etc/issue</filename>).  This
    4653  information is from <command>man agetty</command> where you can find
    4754  extra information about the logon process.</para>
    4855
    49   <para>The <filename>issue</filename> file can contain certain escape codes to
    50   display various information.  All escape codes consist of a backslash (\)
    51   immediately followed by one of the letters explained below (so
    52   <option>\d</option> in <filename>/etc/issue</filename> would
    53   insert the current date).</para>
     56  <para>The <filename>issue</filename> file can contain certain character
     57  sequences to display various information.  All <filename>issue</filename>
     58  sequences consist of a backslash (\) immediately followed by one of the
     59  letters explained below (so <option>\d</option> in
     60  <filename>/etc/issue</filename> would insert the current date).</para>
    5461
    5562<screen><literal>b   Insert the baudrate of the current line.
Note: See TracChangeset for help on using the changeset viewer.