Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Jun 2000 16:06:50 +0100
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/18954: [PATCH] Bring the Fonts tutorial up to date
Message-ID:  <20000601202135.E232@parish>

next in thread | raw e-mail | index | archive | help

>Number:         18954
>Category:       docs
>Synopsis:       [PATCH] Bring the Fonts tutorial up to date
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 01 12:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000601202135.E232>