DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

scr_dump(FP)


scr_dump -- format of curses screen image file

Syntax

scr_dump(file)

Description

The curses(S) function scr_dump() copies the contents of the screen into a file. The format of the screen image is described in this section.

The name of the tty is 20 characters long and the modification time is of the type time_t. All other numbers and characters are stored as chtype (see <curses.h>), unless noted otherwise. No new lines are stored between fields.

<magic number: octal 0433>
<name of tty>
<mod time of tty>
<columns> <lines>
<line length> <chars in line> for each line on the screen
<line length> <chars in line>
.
.
.
<labels?: int> 1, if soft screen labels are present
<colors?: int> 1, if color data follows
<cursor row> <cursor column>

Only as many characters as are in a line are listed. For example, if the ``line length'' is ``0'', there are no characters following ``line length''.

If ``<labels?: int >'' is ``TRUE'', following it is:

<number of labels: short >
<label width: short >
<chars in label 1>
<chars in label 2>
.
.
.

If ``<colors?: int >'' is ``TRUE'', following it is:

<number of colors: int >
<number of color pairs: int >
<can_change: short >
<contents of colors (r, g, b): sizeof(_Color)*COLORS >
<contents of color-pairs: sizeof(_Color_pair)*COLOR_PAIRS >

Note that ``<contents of colors>'' and ``<contents of color-pairs>'' are present only when ``<can_change: short >'' is ``TRUE''.

See also

curses(S)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005