Reflect (even ancient) changes, that have come up since this article
had been imported, in the 60-lines part. PR: 18954 Submitted by: Mark Ovens <mark@ukug.uk.freebsd.org> Reviewed by: asmodai
This commit is contained in:
parent
85076c4905
commit
195bf8e935
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=7424
2 changed files with 38 additions and 86 deletions
|
@ -1,4 +1,4 @@
|
|||
<!-- $FreeBSD: doc/en_US.ISO_8859-1/articles/fonts/article.sgml,v 1.6 1999/10/10 18:08:15 jhb Exp $ -->
|
||||
<!-- $FreeBSD: doc/en_US.ISO_8859-1/articles/fonts/article.sgml,v 1.7 1999/10/10 18:35:50 jhb Exp $ -->
|
||||
<!-- The FreeBSD Documentation Project -->
|
||||
<!DOCTYPE ARTICLE PUBLIC "-//FreeBSD//DTD DocBook V3.1-Based Extension//EN" [
|
||||
<!ENTITY % man PUBLIC "-//FreeBSD//ENTITIES DocBook Manual Page Entities//EN">
|
||||
|
@ -22,6 +22,11 @@
|
|||
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,13 +224,13 @@
|
|||
<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>
|
||||
<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># Choose font 8x8 from /usr/share/syscons/fonts/* (or NO for default)
|
||||
font8x8=/usr/share/syscons/fonts/cp437-8x8.fnt
|
||||
<programlisting>font8x8="iso-8x8" # font 8x8 from /usr/share/syscons/fonts/* (or NO).
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
|
||||
|
@ -238,51 +243,22 @@ font8x8=/usr/share/syscons/fonts/cp437-8x8.fnt
|
|||
</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>
|
||||
be able to determine the current screen dimensions. As this is
|
||||
achieved this through <command>ioctl</command> calls to the console
|
||||
driver (such as &man.syscons.4) 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.
|
||||
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>
|
||||
To do this is add this line to <filename>/etc/rc.conf</filename>
|
||||
</para>
|
||||
|
||||
<informalexample>
|
||||
<programlisting>for tty in /dev/ttyv?
|
||||
do
|
||||
vidcontrol VGA_80x60 <$tty >/dev/null 2>&1
|
||||
done
|
||||
<programlisting>allscreens_flags="VGA_80x60" # Set this vidcontrol mode for all virtual screens
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Add to <filename>/etc/profile</filename>:</para>
|
||||
|
||||
<informalexample>
|
||||
<programlisting>TTYNAME=`basename \`tty\``
|
||||
if expr "$TTYNAME" : 'ttyv' >/dev/null
|
||||
then
|
||||
stty crt rows 60 columns 80
|
||||
fi
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
|
||||
<para>References: &man.stty.1;, &man.vidcontrol.1;.</para>
|
||||
<para>References: &man.rc.conf.5;, &man.vidcontrol.1;.</para>
|
||||
</sect1>
|
||||
|
||||
<sect1>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!-- $FreeBSD: doc/en_US.ISO_8859-1/articles/fonts/article.sgml,v 1.6 1999/10/10 18:08:15 jhb Exp $ -->
|
||||
<!-- $FreeBSD: doc/en_US.ISO_8859-1/articles/fonts/article.sgml,v 1.7 1999/10/10 18:35:50 jhb Exp $ -->
|
||||
<!-- The FreeBSD Documentation Project -->
|
||||
<!DOCTYPE ARTICLE PUBLIC "-//FreeBSD//DTD DocBook V3.1-Based Extension//EN" [
|
||||
<!ENTITY % man PUBLIC "-//FreeBSD//ENTITIES DocBook Manual Page Entities//EN">
|
||||
|
@ -22,6 +22,11 @@
|
|||
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,13 +224,13 @@
|
|||
<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>
|
||||
<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># Choose font 8x8 from /usr/share/syscons/fonts/* (or NO for default)
|
||||
font8x8=/usr/share/syscons/fonts/cp437-8x8.fnt
|
||||
<programlisting>font8x8="iso-8x8" # font 8x8 from /usr/share/syscons/fonts/* (or NO).
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
|
||||
|
@ -238,51 +243,22 @@ font8x8=/usr/share/syscons/fonts/cp437-8x8.fnt
|
|||
</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>
|
||||
be able to determine the current screen dimensions. As this is
|
||||
achieved this through <command>ioctl</command> calls to the console
|
||||
driver (such as &man.syscons.4) 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.
|
||||
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>
|
||||
To do this is add this line to <filename>/etc/rc.conf</filename>
|
||||
</para>
|
||||
|
||||
<informalexample>
|
||||
<programlisting>for tty in /dev/ttyv?
|
||||
do
|
||||
vidcontrol VGA_80x60 <$tty >/dev/null 2>&1
|
||||
done
|
||||
<programlisting>allscreens_flags="VGA_80x60" # Set this vidcontrol mode for all virtual screens
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Add to <filename>/etc/profile</filename>:</para>
|
||||
|
||||
<informalexample>
|
||||
<programlisting>TTYNAME=`basename \`tty\``
|
||||
if expr "$TTYNAME" : 'ttyv' >/dev/null
|
||||
then
|
||||
stty crt rows 60 columns 80
|
||||
fi
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
|
||||
<para>References: &man.stty.1;, &man.vidcontrol.1;.</para>
|
||||
<para>References: &man.rc.conf.5;, &man.vidcontrol.1;.</para>
|
||||
</sect1>
|
||||
|
||||
<sect1>
|
||||
|
|
Loading…
Reference in a new issue