OK, enough whining about this. Here is a suggested patch for FAQ 7.3
if anyone wants it:


Index: www/faq/faq7.html
===================================================================
RCS file: /cvs/www/faq/faq7.html,v
retrieving revision 1.78
diff -u -r1.78 faq7.html
--- www/faq/faq7.html   1 Mar 2008 11:31:08 -0000       1.78
+++ www/faq/faq7.html   15 May 2008 15:34:38 -0000
@@ -105,9 +105,37 @@
 <h2>7.3 - Clearing the console each time a user logs out.</h2>
 
 <p>
-To do this you must add a line in 
+To do this you must modify the stanza in 
+<kbd><a 
href="http://www.openbsd.org/cgi-bin/man.cgi?query=gettytab&amp;sektion=5";>/etc/gettytab(5)</a></kbd>
+that refers to your console.
+<p>
+First, look at the console line in
+<a 
href="http://www.openbsd.org/cgi-bin/man.cgi?query=ttys&amp;sektion=5";><tt>/etc/ttys(5)</tt></a>
+to determine the argument passed to
+<a 
href="http://www.openbsd.org/cgi-bin/man.cgi?query=getty&amp;sektion=8";>getty(8)</a>.
+Starting with version 4.3, this is likely to be &quot;std.9600&quot;. 
&quot;Pc&quot; was used in older
+releases.
+<p>
+Then, append the string &quot;<tt>:cl=\E[H\E[2J:</tt>&quot; to the appropriate
+entry in
 <kbd><a 
href="http://www.openbsd.org/cgi-bin/man.cgi?query=gettytab&amp;sektion=5";>/etc/gettytab(5)</a></kbd>.
-Change the current section:
+For example,
+
+<blockquote><pre>
+2|std.9600|9600-baud:\
+        :sp#9600:
+</pre></blockquote>
+
+<p>
+becomes
+
+<blockquote><pre>
+2|std.9600|9600-baud:\
+        :sp#9600:cl=\E[H\E[2J:
+</pre></blockquote>
+
+<p>
+or, for older releases:
 
 <blockquote><pre>
 P|Pc|Pc console:\
@@ -115,14 +143,15 @@
 </pre></blockquote>
 
 <p>
-adding the line &quot;<tt>:cl=\E[H\E[2J:</tt>&quot; at the end, so that
-it ends up looking like this:
+becomes
 
 <blockquote><pre>
 P|Pc|Pc console:\
-        :np:sp#9600:\
-       :cl=\E[H\E[2J:
+        :np:sp#9600:cl=\E[H\E[2J:
 </pre></blockquote>
+
+<p>
+This is not guaranteed to work on all architectures and hardware.
 
 <p>
 <a name= "Scrollback"></a>

Reply via email to