xref: /openbsd-src/usr.sbin/wsconscfg/wsconscfg.8 (revision c18ef1e4e9d4cf9588c3b31c2433844f3f1d6f55)
1*c18ef1e4Smiod.\"	$OpenBSD: wsconscfg.8,v 1.21 2024/11/06 17:14:03 miod Exp $
25f82fb9fSmickey.\"	$NetBSD: wsconscfg.8,v 1.5 1999/05/15 14:45:06 drochner Exp $
35f82fb9fSmickey.\"
44f3b4fbfSjmc.\" Copyright (c) 1999
54f3b4fbfSjmc.\" 	Matthias Drochner.  All rights reserved.
64f3b4fbfSjmc.\"
74f3b4fbfSjmc.\" Redistribution and use in source and binary forms, with or without
84f3b4fbfSjmc.\" modification, are permitted provided that the following conditions
94f3b4fbfSjmc.\" are met:
104f3b4fbfSjmc.\" 1. Redistributions of source code must retain the above copyright
114f3b4fbfSjmc.\"    notice, this list of conditions and the following disclaimer.
124f3b4fbfSjmc.\" 2. Redistributions in binary form must reproduce the above copyright
134f3b4fbfSjmc.\"    notice, this list of conditions and the following disclaimer in the
144f3b4fbfSjmc.\"    documentation and/or other materials provided with the distribution.
154f3b4fbfSjmc.\"
164f3b4fbfSjmc.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
174f3b4fbfSjmc.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
184f3b4fbfSjmc.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
194f3b4fbfSjmc.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
204f3b4fbfSjmc.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
214f3b4fbfSjmc.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
224f3b4fbfSjmc.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
234f3b4fbfSjmc.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
244f3b4fbfSjmc.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
254f3b4fbfSjmc.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
264f3b4fbfSjmc.\" SUCH DAMAGE.
274f3b4fbfSjmc.\"
28*c18ef1e4Smiod.Dd $Mdocdate: November 6 2024 $
295f82fb9fSmickey.Dt WSCONSCFG 8
309f3fbf99Saaron.Os
315f82fb9fSmickey.Sh NAME
325f82fb9fSmickey.Nm wsconscfg
335f82fb9fSmickey.Nd configure virtual terminals on a wscons display
345f82fb9fSmickey.Sh SYNOPSIS
351c6028b6Saaron.Nm wsconscfg
36*c18ef1e4Smiod.Op Fl dFgkm
37be0889bfSjmc.Op Fl e Ar emul
38be0889bfSjmc.Op Fl f Ar ctldev
39be0889bfSjmc.Op Fl t Ar type
405f82fb9fSmickey.Ar index
415f82fb9fSmickey.Sh DESCRIPTION
425f82fb9fSmickeyThe
435f82fb9fSmickey.Nm
44*c18ef1e4Smiodtool allows for the viewing, creation and removal of virtual terminals
45be0889bfSjmcon display devices controlled by the wscons terminal framework,
46be0889bfSjmcas long as the underlying display hardware driver supports multiple screens.
47be0889bfSjmcFurthermore, it controls the assignment of keyboards to displays.
481c6028b6Saaron.Pp
495f82fb9fSmickeyThe
505f82fb9fSmickey.Ar index
511c6028b6Saaronargument specifies which virtual terminal is to be configured.
52be0889bfSjmcValid numbers range from 0 to an implementation-specified value
53c7cdfa41Sotto(currently 11, allowing for 12 virtual terminals on a display).
54be0889bfSjmcIn keyboard configuration mode
55be0889bfSjmc(see
56be0889bfSjmc.Fl k ,
57be0889bfSjmcbelow),
58be0889bfSjmcit specifies the
599b002d63Saaron.Xr wskbd 4
605f82fb9fSmickeydevice to attach or detach.
615f82fb9fSmickeyWithout further option arguments, a virtual terminal is created with
625f82fb9fSmickeyimplementation specific properties and a default terminal emulation variant
635f82fb9fSmickeyselected at kernel compile time.
645f82fb9fSmickey.Pp
651c6028b6SaaronThe options are as follows:
66f1ba3473Saaron.Bl -tag -width Ds
675f82fb9fSmickey.It Fl d
681c6028b6SaaronDelete the specified terminal.
691c6028b6SaaronAny specified terminal that is currently open by a program will not be deleted
701c6028b6Saaronunless the
715f82fb9fSmickey.Fl F
721c6028b6Saaronoption is also given.
731c6028b6SaaronTerminals used by the operating system console or a graphics program (X server)
741c6028b6Saaroncannot be deleted.
751c6028b6SaaronWith the
765f82fb9fSmickey.Fl k
775f82fb9fSmickeyflag, the keyboard specified by
78be0889bfSjmc.Ar index
795f82fb9fSmickeywill be detached from the wscons display.
805f82fb9fSmickeyWith the
815f82fb9fSmickey.Fl m
825f82fb9fSmickeyflag, the multiplexor specified by
83be0889bfSjmc.Ar index
845f82fb9fSmickeywill be detached from the wscons display.
85be0889bfSjmc.It Fl e Ar emul
86be0889bfSjmcSpecify the terminal emulation to use for the virtual terminal.
87be0889bfSjmcThe set of available terminal emulations is determined at kernel compile time.
88be0889bfSjmcSee
89be0889bfSjmc.Xr wscons 4
90be0889bfSjmcfor details.
915f82fb9fSmickey.It Fl F
92be0889bfSjmcForce deletion of a terminal, keyboard, or multiplexor,
93be0889bfSjmceven if it is in use by a userspace program.
94be0889bfSjmc.It Fl f Ar ctldev
95be0889bfSjmcSpecify the control device of the wscons display to operate on.
96be0889bfSjmcThe default is
97be0889bfSjmc.Pa /dev/ttyCcfg .
98*c18ef1e4Smiod.It Fl g
99*c18ef1e4SmiodPrint the index of the virtual terminal specified by
100*c18ef1e4Smiod.Ar index .
101*c18ef1e4SmiodIf the
102*c18ef1e4Smiod.Ar index
103*c18ef1e4Smiodargument is omitted, the index of the current virtual terminal is printed.
1045f82fb9fSmickey.It Fl k
1055f82fb9fSmickeyDo keyboard related operations instead of virtual screen configuration.
1061c6028b6SaaronWithout other flags, a keyboard will be attached to the display device.
1071c6028b6SaaronThe
108be0889bfSjmc.Ar index
109be0889bfSjmcargument can be omitted: in that case the first free keyboard will be used.
1105f82fb9fSmickey.It Fl m
1115f82fb9fSmickeyDo multiplexor related operations instead of virtual screen configuration.
1125f82fb9fSmickeyWithout other flags, a multiplexor will be attached to the display device.
1135f82fb9fSmickey.It Fl t Ar type
1141c6028b6SaaronSpecify a screen type to use.
1151c6028b6SaaronScreen types refer to display format, color depth, and other low-level
1161c6028b6Saarondisplay properties.
1171c6028b6SaaronValid
1185f82fb9fSmickey.Ar type
1195f82fb9fSmickeyarguments are defined by the underlying display device driver.
1205f82fb9fSmickey.El
121fd697ff9Smickey.\" .Pp
122fd697ff9Smickey.\" Typically, the
123fd697ff9Smickey.\" .Nm
124fd697ff9Smickey.\" utility will be invoked in system startup by the
125fd697ff9Smickey.\" .Pa /etc/rc.wscons
126fd697ff9Smickey.\" script, controlled by the
127fd697ff9Smickey.\" .Pa /etc/wscons.conf
128fd697ff9Smickey.\" configuration file.
1295f82fb9fSmickey.Sh EXAMPLES
1301c6028b6SaaronConfigure screen 1 (i.e., the second) for type
1315f82fb9fSmickey.Dq 80x50
1321c6028b6Saaronand VT100 terminal emulation.
1331c6028b6Saaron(Note:
1345f82fb9fSmickey.Dq 80x50
1355f82fb9fSmickeyis a screen type offered by the
1365f82fb9fSmickey.Xr vga 4
1371c6028b6Saarondisplay driver.
1381c6028b6SaaronIn this particular case, an 8x8-font must be loaded beforehand to make the
1391c6028b6Saaronscreen useful.
1401c6028b6SaaronSee
1415f82fb9fSmickey.Xr wsfontload 8 . )
1425f82fb9fSmickey.Pp
143be0889bfSjmc.D1 # wsconscfg -t 80x50 -e vt100 1
1445f82fb9fSmickey.Pp
145be0889bfSjmcConnect the first unconnected keyboard to the display:
146be0889bfSjmc.Pp
147be0889bfSjmc.Dl # wsconscfg -k
1482da9944bSmickey.\" .Sh FILES
1492da9944bSmickey.\" .Bl -tag -width /etc/wscons.conf -compact
1502da9944bSmickey.\" .It Pa /etc/wscons.conf
1512da9944bSmickey.\" wscons configuration file
1522da9944bSmickey.\" .El
1531c6028b6Saaron.Sh SEE ALSO
1541c6028b6Saaron.Xr wscons 4 ,
1559d0b46bcSjmc.Xr wskbd 4 ,
1561c6028b6Saaron.Xr wsconsctl 8 ,
157bce0e22dSaaron.Xr wsfontload 8
1581c6028b6Saaron.Sh HISTORY
1591c6028b6SaaronThe
1601c6028b6Saaron.Nm
161be0889bfSjmcprogram first appeared in
1621c6028b6Saaron.Ox 2.8 .
163