.\" Contributed to 386bsd 0.1 and later versions
.\" Copyright 1992 by Holger Veit
.\" May be freely used with Bill Jolitz's port of
.\" 386bsd and may be included in a 386bsd collection
.\" as long as binary and source are available and reproduce the above
.\" You may freely modify this code and contribute improvements based
.\" on this code as long as you don't claim to be the original author.
.\" Commercial use of this source requires permittance of the copyright
.\" holder. A general license for 386bsd will override this restriction.
.\" Use at your own risk. The copyright holder or any person who makes
.\" this code available for the public (administrators of public archives
.\" for instance) are not responsible for any harm to hardware or software
.\" that might happen due to wrong application or program faults.
.\" You must have the codriver driver in the same package generated
.\" into the 386bsd kernel, otherwise this program does not work.
.\" @(#)whichcons.3 1.0 (contributed to 386bsd) 01/10/93
.Nd determine the actual console type
tries to identify the console driver built into the kernel.
Currently there are different, concurring console drivers with different
features. To allow an application program to adapt to
specific properties of a driver,
can be used to find out the actual driver.
returns a positive integer, describing the detected driver.
The following codes are defined:
.Bl -tag -width 000 -compact
PCCONS driver, patched for X11
CODRV driver, version 0.1.0 or 0.1.1 (obsolete)
CODRV driver, version 0.1.2 and later
PCCONS driver with improved X11 support
call is an intermediate feature and will exist as long there are
concurrent console driver version in the experimental 386bsd 0.X