overlay(3curses)


overlay -- copy overlapped windows

Synopsis

cc [options] file -lcurses
#include <curses.h>

int overlay(const WINDOW *srcwin, WINDOW *dstwin);

int overwrite(const WINDOW *srcwin, WINDOW *dstwin);

Description

The overlay(3curses) and overwrite(3curses) functions overlay srcwin on top of dstwin. The scrwin and dstwin arguments need not be the same size; only text where the two windows overlap is copied.

The overwrite(3curses) function copies characters as though a sequence of win_wch(3curses) and wadd_wch(3curses) were performed with the destination window's attributes and background attributes cleared.

The overlay(3curses) function does the same thing, except that, whenever a character to be copied is the background character of the source window, overlay(3curses) does not copy the character but merely moves the destination cursor the width of the source background character.

If any portion of the overlaying window border is not the first column of a multi-column character then all the column positions will be replaced with the background character and rendition before the overlay is done. If the default background character is a multi-column character when this occurs, then these functions fail.

Return value

Upon successful completion, these functions return OK. Otherwise, they return ERR.

Errors

No errors are defined.

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

copywin(3curses), curses(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004