X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;ds=sidebyside;f=man%2Fscr_dump.5;h=b9e9bacdb61e5c2d03fb94a967ff2f8f763f5d59;hb=aed072e27e60c2abc5ac0ab8113aacf9b4908d50;hp=aff1fb5783deb0e5687b57f726b6a45e1c07f373;hpb=a8e3f06ac309504143cd56ac9ec55889bfdf4914;p=ncurses.git diff --git a/man/scr_dump.5 b/man/scr_dump.5 index aff1fb57..b9e9bacd 100644 --- a/man/scr_dump.5 +++ b/man/scr_dump.5 @@ -26,16 +26,16 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: scr_dump.5,v 1.9 2017/04/22 18:44:25 tom Exp $ +.\" $Id: scr_dump.5,v 1.12 2017/11/25 20:12:55 tom Exp $ .TH scr_dump 5 .ie \n(.g .ds `` \(lq .el .ds `` `` .ie \n(.g .ds '' \(rq .el .ds '' '' .de NS -.ie \n(.sp +.ie n .sp .el .sp .5 -.ie \n(.in +4 +.ie n .in +4 .el .in +2 .nf .ft C \" Courier @@ -46,10 +46,9 @@ .in -4 .. .de bP -.IP \(bu 4 +.ie n .IP \(bu 4 +.el .IP \(bu 2 .. -.ds n 5 -.ds d @TERMINFO@ .SH NAME scr_dump \- format of curses screen-dumps. .SH SYNOPSIS @@ -251,7 +250,23 @@ e.g., .NE .SS NetBSD .PP -As of April 2017, NetBSD curses does not yet support screen dumps. +As of April 2017, NetBSD curses does +not support \fBscr_dump\fP and \fBscr_restore\fP +(or \fBscr_init\fP, \fBscr_set\fP), +although it has \fBputwin\fP and \fBgetwin\fP. +.PP +Like ncurses5, NetBSD \fBputwin\fP does not identify its dumps with a +useful magic number. +It writes +.bP +the curses shared library major and minor versions +as the first two bytes (e.g., 7 and 1), +.bP +followed by a binary dump of the \fBWINDOW\fP, +.bP +some data for wide-characters referenced by the \fBWINDOW\fP structure, and +.bP +finally, lines as done by other implementations. .SH EXAMPLE .PP Given a simple program which writes text to the screen