From mark@ukug.uk.freebsd.org  Thu Jun  1 12:21:47 2000
Return-Path: <mark@ukug.uk.freebsd.org>
Received: from mta02-svc.server.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42])
	by hub.freebsd.org (Postfix) with ESMTP id CA1C137B8D5
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  1 Jun 2000 12:21:46 -0700 (PDT)
	(envelope-from mark@ukug.uk.freebsd.org)
Received: from parish.my.domain ([62.253.86.40])
          by mta02-svc.server.ntlworld.com
          (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP
          id <20000601202125.QDLL10065.mta02-svc.server.ntlworld.com@parish.my.domain>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Thu, 1 Jun 2000 20:21:25 +0000
Received: (from mark@localhost)
	by parish.my.domain (8.9.3/8.9.3) id UAA00802
	for FreeBSD-gnats-submit@freebsd.org; Thu, 1 Jun 2000 20:21:36 +0100 (BST)
	(envelope-from mark)
Message-Id: <20000601202135.E232@parish>
Date: Thu, 01 Jun 2000 16:06:50 +0100
From: Mark Ovens <mark@ukug.uk.freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] Bring the Fonts tutorial up to date
X-Send-Pr-Version: 3.2

>Number:         18954
>Category:       docs
>Synopsis:       [PATCH] Bring the Fonts tutorial up to date
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    alex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 01 12:30:01 PDT 2000
>Closed-Date:    Tue Jun 20 04:30:21 PDT 2000
>Last-Modified:  Tue Jun 20 04:31:07 PDT 2000
>Originator:     Mark Ovens
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
>Environment:

	

>Description:

	Due to changes in FreeBSD configuration the section dealing with
	setting the console to 60 lines is now incorrect.

>How-To-Repeat:

	Read it :)

>Fix:


*** article.sgml.orig	Sat May 27 19:14:00 2000
--- article.sgml	Sat May 27 20:24:25 2000
***************
*** 22,27 ****
--- 22,32 ----
       and I would welcome being corrected.
   -->
  
+ <!-- The section "Setting a virtual console to 80x60 line mode" was
+      updated to reflect changes in FreeBSD system configuration
+      files by Mark Ovens <mark@ukug.uk.freebsd.org> 27/5/00
+  -->
+ 
  <article>
    <artheader>
      <title>Fonts and FreeBSD</title>
***************
*** 219,231 ****
    <sect1>
      <title>Setting a virtual console to 80x60 line mode</title>
  
!     <para>First, a 8x8 font must be loaded.
!       <filename>/etc/sysconfig</filename> should contain the
!       lines:</para>
  
      <informalexample>
!       <programlisting># Choose font 8x8 from /usr/share/syscons/fonts/* (or NO for default)
! font8x8=/usr/share/syscons/fonts/cp437-8x8.fnt
        </programlisting>
      </informalexample>
  
--- 224,236 ----
    <sect1>
      <title>Setting a virtual console to 80x60 line mode</title>
  
!     <para>First, an 8x8 font must be loaded. To do this
!       <filename>/etc/rc.conf</filename> should contain the
!       line (change the font name to an appropriate one for
!       your locale):</para>
  
      <informalexample>
!       <programlisting>font8x8="iso-8x8"		# font 8x8 from /usr/share/syscons/fonts/* (or NO).
        </programlisting>
      </informalexample>
  
***************
*** 238,288 ****
      </informalexample>
  
      <para>Various screen orientated programs, such as &man.vi.1, must
!       be able to determine the current screen dimensions.  These can
!       be set with &man.stty.1;:</para>
! 
!     <informalexample>
!       <screen>bash$ <userinput>stty crt rows 60 columns 80</userinput>
!       </screen>
!     </informalexample>
  
      <para>To make this more seamless, one can embed these commands in
        the startup scripts so it takes place when the system boots.
!       One way to do this is:</para>
! 
!     <orderedlist>
!       <listitem>
! 	<para>Modify <filename>/etc/sysconfig</filename> as
! 	  above</para>
!       </listitem>
! 
!       <listitem>
! 	<para>Add to <filename>/etc/rc.local</filename>:</para>
! 
! 	<informalexample>
! 	  <programlisting>for tty in /dev/ttyv?
! do
!   vidcontrol VGA_80x60 &lt;$tty &gt;/dev/null 2&gt;&amp;1
! done
! 	  </programlisting>
! 	</informalexample>
!       </listitem>
! 
!       <listitem>
! 	<para>Add to <filename>/etc/profile</filename>:</para>
  
  	<informalexample>
! 	  <programlisting>TTYNAME=`basename \`tty\``
! if expr "$TTYNAME" : 'ttyv' &gt;/dev/null
! then
!   stty crt rows 60 columns 80
! fi
  	  </programlisting>
  	</informalexample>
-       </listitem>
-     </orderedlist>
  
!     <para>References: &man.stty.1;, &man.vidcontrol.1;.</para>
    </sect1>
  
    <sect1>
--- 243,264 ----
      </informalexample>
  
      <para>Various screen orientated programs, such as &man.vi.1, must
!       be able to determine the current screen dimensions.  As this is
!       achieved this through <command>ioctl</command> calls to the
!       &man.syscons.4 driver they will correctly determine the new
!       screen dimensions.</para>
  
      <para>To make this more seamless, one can embed these commands in
        the startup scripts so it takes place when the system boots.
!       To do this is add this line to <filename>/etc/rc.conf</filename>
!     </para>
  
  	<informalexample>
! 	  <programlisting>allscreens_flags="VGA_80x60"	# Set this vidcontrol mode for all virtual screens
  	  </programlisting>
  	</informalexample>
  
!     <para>References: &man.rc.conf.5;, &man.vidcontrol.1;.</para>
    </sect1>
  
    <sect1>


*** man-refs.ent.orig	Sat May 27 19:49:55 2000
--- man-refs.ent	Sat May 27 20:01:27 2000
***************
*** 128,133 ****
--- 128,134 ----
  <!ENTITY man.pcm.4 "<citerefentry/<refentrytitle/pcm/<manvolnum/4//">
  <!ENTITY man.sio.4 "<citerefentry/<refentrytitle/sio/<manvolnum/4//">
  <!ENTITY man.st.4 "<citerefentry/<refentrytitle/st/<manvolnum/4//">
+ <!ENTITY man.syscons.4 "<citerefentry/<refentrytitle/syscons/<manvolnum/4//">
  <!ENTITY man.termios.4 "<citerefentry/<refentrytitle/termios/<manvolnum/4//">
  <!ENTITY man.ukbd.4 "<citerefentry/<refentrytitle/ukbd/<manvolnum/4//">
  
***************
*** 144,149 ****
--- 145,151 ----
  <!ENTITY man.login.conf.5 "<citerefentry/<refentrytitle/login.conf/<manvolnum/5//">
  <!ENTITY man.passwd.5 "<citerefentry/<refentrytitle/passwd/<manvolnum/5//">
  <!ENTITY man.printcap.5 "<citerefentry/<refentrytitle/printcap/<manvolnum/5//">
+ <!ENTITY man.rc.conf.5 "<citerefentry/<refentrytitle/rc.conf/<manvolnum/5//">
  <!ENTITY man.resolv.conf.5 "<citerefentry/<refentrytitle/resolv.conf/<manvolnum/5//">
  <!ENTITY man.skey.access.5 "<citerefentry/<refentrytitle/skey.access/<manvolnum/5//">
  <!ENTITY man.syslog.conf.5 "<citerefentry/<refentrytitle/syslog.conf/<manvolnum/5//">


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->alex 
Responsible-Changed-By: alex 
Responsible-Changed-When: Mon Jun 12 08:58:47 PDT 2000 
Responsible-Changed-Why:  
I'll take a look at this nice one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18954 
State-Changed-From-To: open->feedback 
State-Changed-By: alex 
State-Changed-When: Wed Jun 14 09:19:24 PDT 2000 
State-Changed-Why:  
Awaiting originator's reply for possible extension of his patch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18954 
State-Changed-From-To: feedback->closed 
State-Changed-By: alex 
State-Changed-When: Tue Jun 20 04:30:21 PDT 2000 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18954 
>Unformatted:
