1999-02-10 14:25:03 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1999
|
|
|
|
.\" Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer as
|
|
|
|
.\" the first lines of this file unmodified.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1999-02-10 14:25:03 +00:00
|
|
|
.\"
|
1999-07-05 10:03:05 +00:00
|
|
|
.Dd June 30, 1999
|
1999-11-15 23:14:32 +00:00
|
|
|
.Dt SYSCONS 4
|
2001-07-10 15:31:11 +00:00
|
|
|
.Os
|
1999-02-10 14:25:03 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm syscons ,
|
|
|
|
.Nm sc
|
2001-04-18 15:54:10 +00:00
|
|
|
.Nd the console driver
|
1999-02-10 14:25:03 +00:00
|
|
|
.Sh SYNOPSIS
|
1999-07-05 10:03:05 +00:00
|
|
|
.Cd "options MAXCONS=N"
|
|
|
|
.Cd "options SC_ALT_MOUSE_IMAGE"
|
2001-09-21 20:41:24 +00:00
|
|
|
.Cd "options SC_CUT_SEPCHARS=_characters_"
|
|
|
|
.Cd "options SC_CUT_SPACES2TABS"
|
1999-07-05 10:03:05 +00:00
|
|
|
.Cd "options SC_DISABLE_DDBKEY"
|
|
|
|
.Cd "options SC_DISABLE_REBOOT"
|
|
|
|
.Cd "options SC_HISTORY_SIZE=N"
|
|
|
|
.Cd "options SC_MOUSE_CHAR=C"
|
|
|
|
.Cd "options SC_NO_CUTPASTE"
|
|
|
|
.Cd "options SC_NO_FONT_LOADING"
|
|
|
|
.Cd "options SC_NO_HISTORY"
|
|
|
|
.Cd "options SC_NO_PALETTE_LOADING"
|
|
|
|
.Cd "options SC_NO_SYSMOUSE"
|
|
|
|
.Cd "options SC_PIXEL_MODE"
|
2001-08-27 08:05:52 +00:00
|
|
|
.Cd "options SC_TWOBUTTON_MOUSE"
|
2000-01-17 14:51:44 +00:00
|
|
|
.Cd "options SC_NORM_ATTR=_attribute_"
|
|
|
|
.Cd "options SC_NORM_REV_ATTR=_attribute_"
|
|
|
|
.Cd "options SC_KERNEL_CONS_ATTR=_attribute_"
|
|
|
|
.Cd "options SC_KERNEL_CONS_REV_ATTR=_attribute_"
|
1999-07-05 10:03:05 +00:00
|
|
|
.Cd "options SC_DFLT_FONT"
|
2000-01-17 14:51:44 +00:00
|
|
|
.Cd "makeoptions SC_DFLT_FONT=_font_name_"
|
2001-10-13 09:08:37 +00:00
|
|
|
.Cd "device sc"
|
|
|
|
.Pp
|
|
|
|
In
|
|
|
|
.Pa /boot/device.hints :
|
|
|
|
.Cd hint.sc.0.at="isa"
|
1999-02-10 14:25:03 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver provides multiple virtual terminals.
|
|
|
|
It resembles the SCO color console driver.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver is implemented on top of the keyboard driver
|
|
|
|
.Pq Xr atkbd 4
|
|
|
|
and the video card driver
|
|
|
|
.Pq Xr vga 4
|
|
|
|
and so requires both of them to be configured in the system.
|
|
|
|
.Pp
|
2001-05-01 09:15:30 +00:00
|
|
|
There can be only one
|
1999-02-10 14:25:03 +00:00
|
|
|
.Nm
|
|
|
|
device defined in the system.
|
|
|
|
.Ss Virtual Terminals
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver provides multiple virtual terminals which appear as if they were
|
|
|
|
separate terminals.
|
|
|
|
One virtual terminal is considered current and exclusively
|
|
|
|
occupies the screen and the keyboard; the other virtual terminals
|
|
|
|
are placed in the background.
|
|
|
|
.Pp
|
|
|
|
In order to use virtual terminals, they must be individually
|
|
|
|
marked ``on'' in
|
|
|
|
.Pa /etc/ttys
|
2001-05-01 09:15:30 +00:00
|
|
|
so that
|
1999-02-10 14:25:03 +00:00
|
|
|
.Xr getty 8
|
|
|
|
will recognize them to be active and run
|
2001-05-01 09:15:30 +00:00
|
|
|
.Xr login 1
|
1999-02-10 14:25:03 +00:00
|
|
|
to let the user to login to the system.
|
1999-08-22 19:09:19 +00:00
|
|
|
By default, only the first eight virtual terminals are activated in
|
1999-02-10 14:25:03 +00:00
|
|
|
.Pa /etc/ttys .
|
|
|
|
.Pp
|
|
|
|
You press the
|
2000-10-03 22:51:27 +00:00
|
|
|
.Dv Alt
|
2001-05-01 09:15:30 +00:00
|
|
|
key and a switch key to switch between
|
1999-02-10 14:25:03 +00:00
|
|
|
virtual terminals.
|
|
|
|
The following table summarizes the correspondence between the switch
|
|
|
|
key and the virtual terminal.
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
Alt-F1 ttyv0 Alt-F7 ttyv6 Shift-Alt-F1 ttyv10
|
|
|
|
Alt-F2 ttyv1 Alt-F8 ttyv7 Shift-Alt-F2 ttyv11
|
|
|
|
Alt-F3 ttyv2 Alt-F9 ttyv8 Shift-Alt-F3 ttyv12
|
|
|
|
Alt-F4 ttyv3 Alt-F10 ttyv9 Shift-Alt-F4 ttyv13
|
|
|
|
Alt-F5 ttyv4 Alt-F11 ttyv10 Shift-Alt-F5 ttyv14
|
|
|
|
Alt-F6 ttyv5 Alt-F12 ttyv11 Shift-Alt-F6 ttyv15
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
You can also use the ``nscr'' key (usually the
|
2000-10-03 22:51:27 +00:00
|
|
|
.Dv PrintScreen
|
1999-02-10 14:25:03 +00:00
|
|
|
key on the AT Enhanced keyboard) to cycle available virtual terminals.
|
|
|
|
.Pp
|
|
|
|
The default number of available virtual terminals is 16.
|
|
|
|
This can be changed by the kernel configuration option
|
2000-10-03 22:51:27 +00:00
|
|
|
.Dv MAXCONS
|
1999-02-10 14:25:03 +00:00
|
|
|
(see below).
|
|
|
|
.Pp
|
|
|
|
Note that the X server usually requires a virtual terminal for display
|
2001-05-01 09:15:30 +00:00
|
|
|
purposes, so at least one terminal must be left unused by
|
1999-02-10 14:25:03 +00:00
|
|
|
.Xr getty 8
|
|
|
|
so that it can be used by the X server.
|
|
|
|
.Ss Key Definitions and Function Key Strings
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver, in conjunction with the keyboard driver, allows the user
|
|
|
|
to change key definitions and function key strings.
|
|
|
|
The
|
|
|
|
.Xr kbdcontrol 1
|
|
|
|
command will load a key definition file (known as ``keymap'' file),
|
|
|
|
dump the current keymap, and assign a string to a function key.
|
|
|
|
See
|
|
|
|
.Xr keyboard 4
|
|
|
|
and
|
2000-09-13 09:16:57 +00:00
|
|
|
.Xr kbdmap 5
|
1999-02-10 14:25:03 +00:00
|
|
|
for the keymap file.
|
|
|
|
.Pp
|
|
|
|
You may want to set the
|
|
|
|
.Ar keymap
|
2001-05-01 09:15:30 +00:00
|
|
|
variable in
|
1999-07-05 10:03:05 +00:00
|
|
|
.Pa /etc/rc.conf.local
|
1999-02-10 14:25:03 +00:00
|
|
|
to the desired keymap file so that it will be automatically loaded
|
|
|
|
when the system starts up.
|
|
|
|
.Ss Software Font
|
|
|
|
For most modern video cards, e.g. VGA, the
|
|
|
|
.Nm
|
2001-05-01 09:15:30 +00:00
|
|
|
driver and the video card driver allow the user to change
|
1999-02-10 14:25:03 +00:00
|
|
|
the font used on the screen.
|
|
|
|
The
|
|
|
|
.Xr vidcontrol 1
|
2001-05-01 09:15:30 +00:00
|
|
|
command can be used to load a font file from
|
1999-02-10 14:25:03 +00:00
|
|
|
.Pa /usr/share/syscons/fonts .
|
|
|
|
.Pp
|
|
|
|
The font comes in various sizes: 8x8, 8x14 and 8x16.
|
|
|
|
The 8x16 font is typically used for the VGA card in the 80-column-
|
|
|
|
by-25-line mode.
|
|
|
|
Other video modes may require different size of font.
|
|
|
|
It is better to always load these three sizes of the same font.
|
|
|
|
.Pp
|
|
|
|
You may set
|
|
|
|
.Ar font8x8 ,
|
2001-05-01 09:15:30 +00:00
|
|
|
.Ar font8x14
|
1999-02-10 14:25:03 +00:00
|
|
|
and
|
|
|
|
.Ar font8x16
|
|
|
|
variables in
|
1999-07-05 10:03:05 +00:00
|
|
|
.Pa /etc/rc.conf.local
|
1999-02-10 14:25:03 +00:00
|
|
|
to the desired font files so that they will be automatically loaded
|
|
|
|
when the system starts up.
|
|
|
|
.Pp
|
1999-07-05 10:03:05 +00:00
|
|
|
Optionally you can make a particular font file as the default font.
|
1999-02-10 14:25:03 +00:00
|
|
|
See the
|
2000-10-03 22:51:27 +00:00
|
|
|
.Dv SC_DFLT_FONT
|
1999-02-10 14:25:03 +00:00
|
|
|
option below.
|
|
|
|
.Ss Screen Map
|
|
|
|
If your video card does not support software font, you may still be able
|
|
|
|
to have similar effect by re-mapping font hard-wired in the video card.
|
|
|
|
Use
|
|
|
|
.Xr vidcontrol 1
|
|
|
|
to load a screen map file which defines mapping between character codes.
|
|
|
|
.Ss Mouse Support and Copy-and-Paste
|
|
|
|
You can use your mouse to copy text on the screen and paste it as if
|
|
|
|
it is typed by hand.
|
|
|
|
You must be running the mouse daemon
|
|
|
|
.Xr moused 8
|
|
|
|
and enable the mouse cursor in the virtual terminal via
|
|
|
|
.Xr vidcontrol 1 .
|
|
|
|
.Pp
|
|
|
|
Pressing the mouse button 1 (usually the left button) will start selection.
|
|
|
|
Releasing the button 1 will end the selection process.
|
2001-05-01 09:15:30 +00:00
|
|
|
The selected text will be marked by inverting foreground and
|
1999-02-10 14:25:03 +00:00
|
|
|
background colors.
|
|
|
|
You can press the button 3 (usually the right button) to extend
|
|
|
|
the selected region.
|
|
|
|
The selected text is placed in the copy buffer and can be pasted
|
|
|
|
at the cursor position by your pressing the button 2 (usually the
|
|
|
|
middle button) as many times as you like.
|
1999-11-08 14:16:48 +00:00
|
|
|
.Pp
|
|
|
|
If your mouse has only two buttons, you may want to use the
|
2000-10-03 22:51:27 +00:00
|
|
|
.Dv SC_TWOBUTTON_MOUSE
|
1999-11-08 14:16:48 +00:00
|
|
|
option below to make the right button to paste the text.
|
|
|
|
Alternatively you can make the mouse daemon
|
|
|
|
to emulate the middle button.
|
|
|
|
See the man page for
|
|
|
|
.Xr moused 8
|
|
|
|
for more details.
|
1999-02-10 14:25:03 +00:00
|
|
|
.Ss Back Scrolling
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver allows the user to browse the output which has ``scrolled off''
|
|
|
|
from the top of the screen.
|
|
|
|
.Pp
|
2001-05-01 09:15:30 +00:00
|
|
|
Press the ``slock'' key (usually
|
|
|
|
.Dv ScrllLock
|
|
|
|
and/or
|
|
|
|
.Dv Pause
|
|
|
|
keys on many AT Enhanced keyboards) and the terminal is
|
1999-02-10 14:25:03 +00:00
|
|
|
in the ``back scrolling'' mode.
|
2001-05-01 09:15:30 +00:00
|
|
|
It is indicated by the
|
2000-10-03 22:51:27 +00:00
|
|
|
.Dv Scroll Lock
|
1999-02-10 14:25:03 +00:00
|
|
|
LED.
|
2001-05-01 09:15:30 +00:00
|
|
|
Use arrow keys,
|
|
|
|
.Dv Page Up/Down
|
|
|
|
keys and
|
|
|
|
.Dv Home/End
|
1999-02-10 14:25:03 +00:00
|
|
|
keys to scroll buffered terminal output.
|
|
|
|
Press the ``slock'' key again to get back to the normal terminal mode.
|
|
|
|
.Pp
|
|
|
|
The size of the back-scroll buffer can be set by the
|
2000-10-03 22:51:27 +00:00
|
|
|
.Dv SC_HISTORY_SIZE
|
1999-02-10 14:25:03 +00:00
|
|
|
option below.
|
|
|
|
.Ss Screen Saver
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver can be made to put up the screen saver if the current
|
|
|
|
virtual terminal is idle, that is, the user is not typing
|
|
|
|
on the keyboard nor moving mouse.
|
|
|
|
See
|
|
|
|
.Xr splash 4
|
|
|
|
and
|
|
|
|
.Xr vidcontrol 1
|
|
|
|
for more details.
|
|
|
|
.Sh DRIVER CONFIGURATION
|
|
|
|
.Ss Kernel Configuration Options
|
|
|
|
The following kernel configuration options control the
|
|
|
|
.Nm
|
|
|
|
driver.
|
|
|
|
.Bl -tag -width MOUSE
|
2000-10-03 22:51:27 +00:00
|
|
|
.It Dv MAXCONS=N
|
1999-02-10 14:25:03 +00:00
|
|
|
This option sets the number of virtual terminals to
|
|
|
|
.Fa N .
|
|
|
|
The default value is 16.
|
2000-10-03 22:51:27 +00:00
|
|
|
.It Dv SC_ALT_MOUSE_IMAGE
|
1999-07-05 10:03:05 +00:00
|
|
|
This option selects the alternative way of displaying the mouse cursor
|
|
|
|
in the virtual terminal.
|
|
|
|
It may be vastly costly for some video cards to draw the arrow-shaped
|
|
|
|
cursor and you may want to try this option.
|
|
|
|
However, the appearance of the alternative mouse cursor may not be
|
2000-10-03 22:51:27 +00:00
|
|
|
very appealing.
|
|
|
|
Note that if you use the
|
|
|
|
.Dv SC_NO_FONT_LOADING
|
2000-09-30 16:25:28 +00:00
|
|
|
option then you must also use this option if you wish to be able to use
|
|
|
|
the mouse.
|
2001-09-21 20:41:24 +00:00
|
|
|
.It Dv SC_CUT_SEPCHARS=_characters_
|
|
|
|
This options specifies characters that will be looked for when the
|
2001-10-01 13:20:05 +00:00
|
|
|
driver searches for words boundaries when doing cut operation.
|
|
|
|
By default, its value is
|
|
|
|
.Qq Li \ex20
|
|
|
|
\(em a space character.
|
2001-09-21 20:41:24 +00:00
|
|
|
.It Dv SC_CUT_SPACES2TABS
|
|
|
|
This options instructs the driver to convert leading spaces into tabs
|
2001-10-01 13:20:05 +00:00
|
|
|
when copying data into cut buffer.
|
|
|
|
This might be useful to preserve
|
2001-09-21 20:41:24 +00:00
|
|
|
identation when copying tab-idented text.
|
2000-10-03 22:51:27 +00:00
|
|
|
.It Dv SC_DISABLE_DDBKEY
|
2001-05-01 09:15:30 +00:00
|
|
|
This option disables the ``debug'' key (by default, it is
|
2000-10-03 22:51:27 +00:00
|
|
|
.Dv Alt-Esc ,
|
1999-07-05 10:03:05 +00:00
|
|
|
or
|
2001-08-10 17:35:21 +00:00
|
|
|
.Dv Ctl-PrintScreen ) .
|
1999-07-05 10:03:05 +00:00
|
|
|
It will prevent the user from
|
2001-05-01 09:15:30 +00:00
|
|
|
entering the kernel debugger DDB by pressing the key combination.
|
|
|
|
DDB will still be invoked when the kernel panics or hits a break point
|
1999-07-05 10:03:05 +00:00
|
|
|
if it is included in the kernel.
|
2000-10-03 22:51:27 +00:00
|
|
|
.It Dv SC_DISABLE_REBOOT
|
2001-05-01 09:15:30 +00:00
|
|
|
This option disables the ``reboot'' key (by default, it is
|
2001-08-10 17:35:21 +00:00
|
|
|
.Dv Ctl-Alt-Del ) ,
|
|
|
|
so that the casual user may not accidentally reboot the system.
|
2000-10-03 22:51:27 +00:00
|
|
|
.It Dv SC_HISTORY_SIZE=N
|
2001-05-01 09:15:30 +00:00
|
|
|
Sets the size of back scroll buffer to
|
1999-02-10 14:25:03 +00:00
|
|
|
.Fa N
|
|
|
|
lines.
|
|
|
|
The default value is 100.
|
2000-10-03 22:51:27 +00:00
|
|
|
.It Dv SC_MOUSE_CHAR=C
|
1999-07-05 10:03:05 +00:00
|
|
|
Unless the
|
2000-10-03 22:51:27 +00:00
|
|
|
.Dv SC_ALT_MOUSE_IMAGE
|
1999-07-05 10:03:05 +00:00
|
|
|
option above is specified, the
|
1999-02-10 14:25:03 +00:00
|
|
|
The
|
|
|
|
.Nm
|
2001-05-01 09:15:30 +00:00
|
|
|
driver reserves four consecutive character codes in order to display the
|
1999-02-10 14:25:03 +00:00
|
|
|
mouse cursor in the virtual terminals in some systems.
|
|
|
|
This option specifies the first character code to
|
|
|
|
.Fa C
|
|
|
|
to be used for this purpose.
|
|
|
|
The default value is 0xd0.
|
|
|
|
A good candidate is 0x03.
|
2000-10-03 22:51:27 +00:00
|
|
|
.It Dv SC_PIXEL_MODE
|
1999-07-05 10:03:05 +00:00
|
|
|
Adds support for pixel (raster) mode console.
|
|
|
|
This mode is useful on some laptop computers, but less so on
|
|
|
|
most other systems, and it adds substantial amount of code to syscons.
|
|
|
|
If the this option is NOT defined, you can reduce the kernel size a lot.
|
|
|
|
See the
|
2000-10-03 22:51:27 +00:00
|
|
|
.Dv VESA800X600
|
1999-07-05 10:03:05 +00:00
|
|
|
flag below.
|
2000-10-03 22:51:27 +00:00
|
|
|
.It Dv SC_TWOBUTTON_MOUSE
|
2001-05-01 09:15:30 +00:00
|
|
|
If you have a two button mouse, you may want to add this option
|
1999-11-08 14:16:48 +00:00
|
|
|
to use the right button of the mouse to paste text.
|
|
|
|
See
|
|
|
|
.Sx Mouse Support and Copy-and-Paste
|
|
|
|
above.
|
2000-10-03 22:51:27 +00:00
|
|
|
.It Dv SC_NORM_ATTR=_attribute_
|
|
|
|
.It Dv SC_NORM_REV_ATTR=_attribute_
|
|
|
|
.It Dv SC_KERNEL_CONS_ATTR=_attribute_
|
|
|
|
.It Dv SC_KERNEL_CONS_REV_ATTR=_attribute_
|
1999-11-08 14:16:48 +00:00
|
|
|
These options will set the default colors.
|
|
|
|
Available colors are defined in
|
|
|
|
.Pa /usr/include/machine/pc/display.h .
|
|
|
|
See
|
2000-11-17 11:44:16 +00:00
|
|
|
.Sx EXAMPLES
|
1999-11-08 14:16:48 +00:00
|
|
|
below.
|
2000-10-03 22:51:27 +00:00
|
|
|
.It Dv SC_DFLT_FONT
|
1999-07-05 10:03:05 +00:00
|
|
|
This option will specify the default font.
|
2001-08-27 08:05:52 +00:00
|
|
|
Available fonts are: iso, iso2, koi8-r, koi8-u, cp437, cp850, cp865,
|
2001-09-04 09:54:04 +00:00
|
|
|
cp866 and cp866u.
|
|
|
|
16-line, 14-line and 8-line font data will be compiled in.
|
|
|
|
Without this option, the
|
1999-02-10 14:25:03 +00:00
|
|
|
.Nm
|
|
|
|
driver will use whatever font already loaded in the video card,
|
|
|
|
unless you explicitly load software font at startup.
|
|
|
|
See
|
2000-11-17 11:44:16 +00:00
|
|
|
.Sx EXAMPLES
|
1999-02-10 14:25:03 +00:00
|
|
|
below.
|
|
|
|
.El
|
1999-07-05 10:03:05 +00:00
|
|
|
.Pp
|
|
|
|
The following options will remove some features from the
|
|
|
|
.Nm
|
|
|
|
driver and save kernel memory.
|
|
|
|
.Bl -tag -width MOUSE
|
2000-10-03 22:51:27 +00:00
|
|
|
.It Dv SC_NO_CUTPASTE
|
1999-07-05 10:03:05 +00:00
|
|
|
This option disables ``copy and paste'' operation in virtual
|
|
|
|
terminals.
|
2000-10-03 22:51:27 +00:00
|
|
|
.It Dv SC_NO_FONT_LOADING
|
1999-07-05 10:03:05 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver can load software font on some video cards.
|
2000-10-03 22:51:27 +00:00
|
|
|
This option removes this feature.
|
|
|
|
Note that if you still wish to use
|
2000-09-30 16:25:28 +00:00
|
|
|
the mouse with this option then you must also use the
|
2000-10-03 22:51:27 +00:00
|
|
|
.Dv SC_ALT_MOUSE_IMAGE
|
2000-09-30 16:25:28 +00:00
|
|
|
option.
|
2000-10-03 22:51:27 +00:00
|
|
|
.It Dv SC_NO_HISTORY
|
1999-07-05 10:03:05 +00:00
|
|
|
This option disables back-scrolling in virtual terminals.
|
2000-10-03 22:51:27 +00:00
|
|
|
.\".It Dv SC_NO_PALETTE_LOADING
|
|
|
|
.It Dv SC_NO_SYSMOUSE
|
1999-07-05 10:03:05 +00:00
|
|
|
This option removes mouse support in the
|
|
|
|
.Nm
|
|
|
|
driver.
|
|
|
|
The mouse daemon
|
|
|
|
.Xr moused 8
|
|
|
|
will fail if this option is defined.
|
|
|
|
This option implies the
|
2000-10-03 22:51:27 +00:00
|
|
|
.Dv SC_NO_CUTPASTE
|
1999-07-05 10:03:05 +00:00
|
|
|
option too.
|
|
|
|
.El
|
1999-02-10 14:25:03 +00:00
|
|
|
.Ss Driver Flags
|
|
|
|
The following driver flags can be used to control the
|
|
|
|
.Nm
|
|
|
|
driver.
|
2001-10-13 09:08:37 +00:00
|
|
|
They can be set either in
|
|
|
|
.Pa /boot/device.hints ,
|
|
|
|
or else at the loader prompt (see
|
|
|
|
.Xr loader 8 ) .
|
1999-02-10 14:25:03 +00:00
|
|
|
.Bl -tag -width bit_0
|
1999-07-05 10:03:05 +00:00
|
|
|
.\".It bit 0 (VISUAL_BELL)
|
|
|
|
.\"Uses the ``visual'' bell.
|
|
|
|
.\"The screen will blink instead of generating audible sound.
|
|
|
|
.\".It bit 1,2 (CURSOR_TYPE)
|
|
|
|
.\"This option specifies the cursor appearance.
|
|
|
|
.\"Possible values are:
|
|
|
|
.\".Bl -tag -width TYPE -compact
|
2000-10-03 22:51:27 +00:00
|
|
|
.\".It Dv 0
|
1999-07-05 10:03:05 +00:00
|
|
|
.\"normal block cursor
|
2000-10-03 22:51:27 +00:00
|
|
|
.\".It Dv 2
|
1999-07-05 10:03:05 +00:00
|
|
|
.\"blinking block cursor
|
2000-10-03 22:51:27 +00:00
|
|
|
.\".It Dv 4
|
1999-07-05 10:03:05 +00:00
|
|
|
.\"underline cursor
|
2000-10-03 22:51:27 +00:00
|
|
|
.\".It Dv 6
|
1999-07-05 10:03:05 +00:00
|
|
|
.\"blinking underline (aka destructive) cursor
|
|
|
|
.\".El
|
|
|
|
.\".It bit 6 (QUIET_BELL)
|
2001-05-01 09:15:30 +00:00
|
|
|
.\"This option suppresses the bell, whether audible or visual,
|
1999-07-05 10:03:05 +00:00
|
|
|
.\"if it is rung in a background virtual terminal.
|
2000-06-09 23:47:30 +00:00
|
|
|
.It 0x0080 (VESA800X600)
|
1999-02-10 14:25:03 +00:00
|
|
|
This option puts the video card in the VESA 800x600 dots, 16 color
|
|
|
|
mode.
|
|
|
|
It may be useful for laptop computers for which the 800x600 mode
|
|
|
|
is otherwise unsupported by the X server.
|
2001-05-01 09:15:30 +00:00
|
|
|
Note that in order for this flag to work, the kernel must be
|
1999-07-05 10:03:05 +00:00
|
|
|
compiled with the
|
2000-10-03 22:51:27 +00:00
|
|
|
.Dv SC_PIXEL_MODE
|
1999-07-05 10:03:05 +00:00
|
|
|
option explained above.
|
2001-05-01 09:15:30 +00:00
|
|
|
.\"Note also that the ``copy-and-paste'' function is not currently supported
|
1999-07-05 10:03:05 +00:00
|
|
|
.\"in this mode and the mouse pointer will not be displayed.
|
2000-06-09 23:47:30 +00:00
|
|
|
.It 0x0100 (AUTODETECT_KBD)
|
|
|
|
This option instructs the syscons driver to periodically scan
|
|
|
|
for a keyboard device if it is not currently attached to one.
|
|
|
|
Otherwise, the driver only probes for a keyboard once during bootup.
|
1999-02-10 14:25:03 +00:00
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /usr/share/syscons/xxxxyyyyzzz -compact
|
|
|
|
.It Pa /dev/console
|
|
|
|
.It Pa /dev/consolectl
|
|
|
|
.It Pa /dev/ttyv?
|
|
|
|
virtual terminals
|
|
|
|
.It Pa /etc/ttys
|
|
|
|
terminal initialization information
|
|
|
|
.It Pa /usr/share/syscons/fonts/*
|
|
|
|
font files
|
|
|
|
.It Pa /usr/share/syscons/keymaps/*
|
|
|
|
key map files
|
|
|
|
.It Pa /usr/share/syscons/scrmaps/*
|
|
|
|
screen map files
|
|
|
|
.El
|
2000-11-17 11:44:16 +00:00
|
|
|
.Sh EXAMPLES
|
2001-05-01 09:15:30 +00:00
|
|
|
As the
|
1999-02-10 14:25:03 +00:00
|
|
|
.Nm
|
|
|
|
driver requires the keyboard driver and the video card driver,
|
|
|
|
the kernel configuration file should contain the following lines.
|
|
|
|
.Pp
|
|
|
|
.Bd -literal -offset indent
|
2001-10-13 09:08:37 +00:00
|
|
|
device atkbdc
|
|
|
|
device atkbd
|
|
|
|
device vga
|
|
|
|
device sc
|
1999-02-10 14:25:03 +00:00
|
|
|
|
2001-05-01 09:15:30 +00:00
|
|
|
device splash
|
1999-02-10 14:25:03 +00:00
|
|
|
.Ed
|
2001-10-13 09:08:37 +00:00
|
|
|
You also need the following lines in
|
2001-12-28 20:12:24 +00:00
|
|
|
.Pa /boot/device.hints
|
2001-10-13 09:08:37 +00:00
|
|
|
for these drivers.
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
hint.atkbdc.0.at="isa"
|
|
|
|
hint.atkbdc.0.port="0x060"
|
|
|
|
hint.atkbd.0.at="atkbdc"
|
|
|
|
hint.atkbd.0.irq="1"
|
|
|
|
hint.vga.0.at="isa"
|
|
|
|
hint.sc.0.at="isa"
|
|
|
|
.Ed
|
1999-02-10 14:25:03 +00:00
|
|
|
.Pp
|
|
|
|
If you do not intend to load the splash image or use the screen saver,
|
|
|
|
the last line is not necessary, and can be omitted.
|
|
|
|
.Pp
|
|
|
|
Note that the keyboard controller driver
|
|
|
|
.Nm atkbdc
|
|
|
|
is required by the keyboard driver
|
|
|
|
.Nm atkbd .
|
|
|
|
.Pp
|
2001-05-01 09:15:30 +00:00
|
|
|
The following lines will set the default colors.
|
|
|
|
The normal text will be green on black background.
|
1999-11-08 14:16:48 +00:00
|
|
|
The reversed text will be yellow on green background.
|
|
|
|
Note that you cannot put any white space inside the quoted string,
|
|
|
|
because of the current implementation of
|
|
|
|
.Xr config 8 .
|
|
|
|
.Pp
|
2000-01-17 14:51:44 +00:00
|
|
|
.Dl "options SC_NORM_ATTR=(FG_GREEN|BG_BLACK)
|
|
|
|
.Dl "options SC_NORM_REV_ATTR=(FG_YELLOW|BG_GREEN)
|
1999-11-08 14:16:48 +00:00
|
|
|
.Pp
|
2001-05-01 09:15:30 +00:00
|
|
|
The following lines will set the default colors of the kernel message.
|
1999-11-08 14:16:48 +00:00
|
|
|
The kernel message will be printed bright red on black background.
|
|
|
|
The reversed message will be black on red background.
|
|
|
|
.Pp
|
2000-01-17 14:51:44 +00:00
|
|
|
.Dl "options SC_KERNEL_CONS_ATTR=(FG_LIGHTRED|BG_BLACK)
|
|
|
|
.Dl "options SC_KERNEL_CONS_REV_ATTR=(FG_BLACK|BG_RED)
|
1999-11-08 14:16:48 +00:00
|
|
|
.Pp
|
1999-07-05 10:03:05 +00:00
|
|
|
The following example adds the font files
|
|
|
|
.Pa cp850-8x16.fnt ,
|
2001-05-01 09:15:30 +00:00
|
|
|
.Pa cp850-8x14.font
|
1999-07-05 10:03:05 +00:00
|
|
|
and
|
|
|
|
.Pa cp850-8x8.font
|
|
|
|
to the kernel.
|
1999-02-10 14:25:03 +00:00
|
|
|
.Pp
|
1999-07-05 10:03:05 +00:00
|
|
|
.Dl "options SC_DFLT_FONT"
|
2000-01-17 14:51:44 +00:00
|
|
|
.Dl "makeoptions SC_DFLT_FONT=cp850
|
2001-10-13 09:08:37 +00:00
|
|
|
.Dl "device sc"
|
1999-02-10 14:25:03 +00:00
|
|
|
.Pp
|
|
|
|
.\".Sh DIAGNOSTICS
|
2001-08-27 08:05:52 +00:00
|
|
|
.Sh CAVEATS
|
|
|
|
Amount of data that is possible to insert from the cut buffer is limited
|
|
|
|
by the
|
2001-09-04 09:54:04 +00:00
|
|
|
.Brq Dv MAX_INPUT ,
|
2001-08-27 08:05:52 +00:00
|
|
|
a system limit on the number of bytes that may be stored in the terminal
|
|
|
|
input queue - usually 1024 bytes
|
2001-09-04 09:54:04 +00:00
|
|
|
(see
|
|
|
|
.Xr termios 4 ) .
|
1999-02-10 14:25:03 +00:00
|
|
|
.Sh BUGS
|
|
|
|
This manual page is incomplete and urgently needs revision.
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr kbdcontrol 1 ,
|
|
|
|
.Xr login 1 ,
|
|
|
|
.Xr vidcontrol 1 ,
|
|
|
|
.Xr atkbd 4 ,
|
|
|
|
.Xr atkbdc 4 ,
|
|
|
|
.Xr keyboard 4 ,
|
|
|
|
.Xr screen 4 ,
|
|
|
|
.Xr splash 4 ,
|
1999-07-05 10:03:05 +00:00
|
|
|
.Xr ukbd 4 ,
|
1999-02-10 14:25:03 +00:00
|
|
|
.Xr vga 4 ,
|
2000-09-13 09:16:57 +00:00
|
|
|
.Xr kbdmap 5 ,
|
1999-02-10 14:25:03 +00:00
|
|
|
.Xr rc.conf 5 ,
|
|
|
|
.Xr ttys 5 ,
|
|
|
|
.Xr config 8 ,
|
|
|
|
.Xr getty 8 ,
|
1999-08-14 20:51:13 +00:00
|
|
|
.Xr kldload 8 ,
|
2000-11-15 16:00:07 +00:00
|
|
|
.Xr moused 8
|
1999-02-10 14:25:03 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver first appeared in
|
|
|
|
.Fx 1.0 .
|
|
|
|
.Sh AUTHORS
|
2000-11-22 09:35:58 +00:00
|
|
|
.An -nosplit
|
1999-02-10 14:25:03 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver was written by
|
2000-11-14 13:09:12 +00:00
|
|
|
.An S\(/oren Schmidt Aq sos@FreeBSD.org .
|
1999-02-10 14:25:03 +00:00
|
|
|
This manual page was written by
|
|
|
|
.An Kazutaka Yokota Aq yokota@FreeBSD.org .
|