2001-11-30 02:19:52 +03:00
|
|
|
.\" $NetBSD: wsdisplay.4,v 1.11 2001/11/29 23:19:52 ross Exp $
|
1999-03-22 22:15:01 +03:00
|
|
|
.Dd March 20, 1999
|
|
|
|
.Os
|
|
|
|
.Dt WSDISPLAY 4
|
|
|
|
.Sh NAME
|
|
|
|
.Nm wsdisplay
|
|
|
|
.Nd generic display device support in wscons
|
|
|
|
.Sh SYNOPSIS
|
2000-06-12 15:04:15 +04:00
|
|
|
.Cd wsdisplay* at ega? console ?
|
|
|
|
(EGA display on ISA)
|
1999-03-22 22:15:01 +03:00
|
|
|
.Cd wsdisplay* at vga? console ?
|
|
|
|
(VGA display on ISA or PCI)
|
|
|
|
.Cd wsdisplay* at pcdisplay? console ?
|
|
|
|
(generic PC (ISA) display)
|
|
|
|
.Cd wsdisplay* at tga? console ?
|
|
|
|
(DEC TGA display, alpha only)
|
|
|
|
.Cd wsdisplay* at pfb? console ?
|
|
|
|
(PCI framebuffer, bebox only)
|
|
|
|
.Cd wsdisplay0 at ofb? console ?
|
|
|
|
(Open Firmware framebuffer, macppc only)
|
|
|
|
.Cd wsdisplay* at nextdisplay? console ?
|
|
|
|
(NeXT display)
|
|
|
|
.Cd wsdisplay0 at smg0
|
|
|
|
(VAXstation small monochrome display)
|
2001-10-13 21:15:33 +04:00
|
|
|
.Cd wsdisplay* at ... kbdmux N
|
1999-03-22 22:15:01 +03:00
|
|
|
.Cd options WSDISPLAY_DEFAULTSCREENS=N
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver is an abstraction layer for display devices within the
|
|
|
|
.Xr wscons 4
|
|
|
|
framework. It attaches to the hardware specific display device
|
|
|
|
driver and and makes it available as text terminal or graphics
|
|
|
|
interface.
|
|
|
|
.Pp
|
|
|
|
A display device can have the ability to display characters on it
|
|
|
|
(without help of an X server), either directly by hardware or through
|
|
|
|
software putting pixel data into the display memory.
|
|
|
|
Such displays are called
|
|
|
|
.Dq emulating ,
|
|
|
|
the
|
|
|
|
.Nm
|
|
|
|
driver will connect a terminal emulation module and provide a
|
|
|
|
tty-like software interface. In contrary, non-emulating displays can only
|
|
|
|
be used by special programs like X servers.
|
|
|
|
.Pp
|
1999-04-08 20:29:56 +04:00
|
|
|
The
|
|
|
|
.Em console
|
|
|
|
locator in the configuration line refers to the device's use as output
|
|
|
|
part of the operating system console. A device specification containing
|
|
|
|
a positive value here will only match if the device is in use as system
|
|
|
|
console. (The console device selection in early system startup is not
|
|
|
|
influenced.) This way, the console device can be connected to a known
|
|
|
|
wsdisplay device instance. (Naturally, only
|
|
|
|
.Dq emulating
|
|
|
|
display devices are usable as console.)
|
|
|
|
.Pp
|
2001-10-13 21:15:33 +04:00
|
|
|
The
|
|
|
|
.Em kbdmux
|
|
|
|
locator in the configuration line refers to the
|
|
|
|
.Xr wsmux 4
|
|
|
|
that will be used to get keyboard events. If this locator is -1 no
|
|
|
|
mux will be used.
|
|
|
|
.Pp
|
2000-03-20 14:51:59 +03:00
|
|
|
The logical unit of an independent contents displayed on a display
|
1999-03-22 22:15:01 +03:00
|
|
|
(sometimes referred to as
|
|
|
|
.Dq virtual terminal
|
|
|
|
) is called a
|
|
|
|
.Dq screen
|
|
|
|
here. If the underlying device driver supports it, multiple screens can
|
|
|
|
be used on one display. (As of this writing, only the
|
|
|
|
.Xr vga 4
|
|
|
|
and the
|
|
|
|
.Tn VAX
|
|
|
|
.Dq smg
|
|
|
|
display drivers provide this ability.)
|
|
|
|
Screens have different minor device numbers and separate tty instances.
|
2001-06-10 19:43:56 +04:00
|
|
|
One screen possesses the
|
1999-03-22 22:15:01 +03:00
|
|
|
.Dq focus ,
|
2001-11-30 02:19:52 +03:00
|
|
|
this means it is visible and its tty device will get
|
|
|
|
the keyboard input. (In some cases \- if no screen is set up or if a screen
|
|
|
|
was just deleted \- it is possible that no focus is present at all.)
|
1999-03-22 22:15:01 +03:00
|
|
|
The focus can be switched by either special keyboard input (typically
|
2001-11-30 02:19:52 +03:00
|
|
|
.Tn CTRL-ALT-F Ns Ar n )
|
|
|
|
or an ioctl command issued by a user program.
|
|
|
|
Screens are created and deleted through the
|
1999-03-22 22:15:01 +03:00
|
|
|
.Pa /dev/ttyEcfg
|
2001-06-10 19:43:56 +04:00
|
|
|
control device (preferably using the
|
1999-03-22 22:15:01 +03:00
|
|
|
.Xr wsconscfg 8
|
|
|
|
utility). Alternatively, the compile-time option
|
2001-11-30 02:19:52 +03:00
|
|
|
.Dv WSDISPLAY_DEFAULTSCREENS Ns = Ns Ar n
|
|
|
|
will also create (at autoconfiguration time)
|
|
|
|
.Ar n
|
|
|
|
initial screens of the display driver's default type with
|
|
|
|
the system's default terminal emulator.
|
1999-03-22 22:15:01 +03:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -item
|
|
|
|
.It
|
|
|
|
.Pa /dev/ttyE*
|
|
|
|
Terminal devices (per screen).
|
|
|
|
.It
|
|
|
|
.Pa /dev/ttyEcfg
|
|
|
|
Control device.
|
|
|
|
.It
|
|
|
|
.Pa /usr/include/dev/wscons/wsconsio.h
|
|
|
|
.El
|
2001-09-12 03:18:55 +04:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr ega 4 ,
|
|
|
|
.Xr pcdisplay 4 ,
|
|
|
|
.Xr tty 4 ,
|
|
|
|
.Xr vga 4 ,
|
|
|
|
.Xr wscons 4 ,
|
|
|
|
.Xr wsconscfg 8 ,
|
|
|
|
.Xr wsconsctl 8 ,
|
|
|
|
.Xr wsfontload 8
|
1999-03-22 22:15:01 +03:00
|
|
|
.Sh BUGS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
code currently limits the number of screens on one display to 8.
|
|
|
|
.Pp
|
|
|
|
The terms
|
|
|
|
.Dq wscons
|
|
|
|
and
|
|
|
|
.Dq wsdisplay
|
|
|
|
are not cleanly distinguished in the code and in manual pages.
|
|
|
|
.Pp
|
|
|
|
.Dq non-emulating
|
|
|
|
display devices are not tested.
|