summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorFrederic Cambus <fcambus@cvs.openbsd.org>2020-09-17 08:23:17 +0000
committerFrederic Cambus <fcambus@cvs.openbsd.org>2020-09-17 08:23:17 +0000
commit23b1583b1dbf8b2e070f3f4361b813d782c70eb2 (patch)
tree4ba2c71d73a105f767ab891aff97f12aa7d5416a /share/man
parent5512aac702386506844c6ca5ff865867917b72e4 (diff)
Document the WSDISPLAYIO_GETSCREENTYPE ioctl in wsdisplay.4.
OK jmc@, kn@, "go for it" kettenis@
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man4/wsdisplay.436
1 files changed, 34 insertions, 2 deletions
diff --git a/share/man/man4/wsdisplay.4 b/share/man/man4/wsdisplay.4
index 6d4558ce6f2..2e867b442b9 100644
--- a/share/man/man4/wsdisplay.4
+++ b/share/man/man4/wsdisplay.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: wsdisplay.4,v 1.54 2019/05/25 11:02:19 otto Exp $
+.\" $OpenBSD: wsdisplay.4,v 1.55 2020/09/17 08:23:16 fcambus Exp $
.\" $NetBSD: wsdisplay.4,v 1.5 2000/05/13 15:22:19 mycroft Exp $
.\"
.\" Copyright (c) 2005, Miodrag Vallat.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 25 2019 $
+.Dd $Mdocdate: September 17 2020 $
.Dt WSDISPLAY 4
.Os
.Sh NAME
@@ -174,6 +174,38 @@ indicates the number of color map entries accessible through
and
.Dv WSDISPLAYIO_PUTCMAP .
This call is likely to be unavailable on text-only displays.
+.It Dv WSDISPLAYIO_GETSCREENTYPE Fa "struct wsdisplay_screentype"
+Retrieve basic information about a screen.
+The returned structure is as follows:
+.Bd -literal -offset indent
+struct wsdisplay_screentype {
+ int idx;
+ int nidx;
+ char name[WSSCREEN_NAME_SIZE];
+ int ncols, nrows;
+ int fontwidth, fontheight;
+};
+.Ed
+.Pp
+The
+.Va idx
+field indicates the index of the screen.
+The
+.Va nidx
+field indicates the number of screens.
+The
+.Va name
+field contains a human readable string used to identify the screen.
+The
+.Va ncols
+and
+.Va nrows
+fields indicate the available number of columns and rows.
+The
+.Va fontwidth
+and
+.Va fontheight
+fields indicate the dimensions of a character cell, in pixels.
.It Dv WSDISPLAYIO_GETCMAP Fa "struct wsdisplay_cmap"
Retrieve the current color map from the display.
This call needs the