overlay(3) — Subroutines
NAME
overlay, overwrite − Overlays windows
SYNOPSIS
#include <curses.h>
int overlay(srcwin, dstwin)
WINDOW ∗srcwin, ∗dstwin;
int overwrite(srcwin, dstwin)
WINDOW ∗srcwin, ∗dstwin;
DESCRIPTION
The overlay routine copies all the text from the source window srcwin on top of the destination window dstwin. The two windows are not required to be the same size. The copy starts at (0, 0) on both windows. The copy is non-destructive, so blanks are not copied.
The overwrite routine copies all of srcwin on top of destwin. The copy starts at (0, 0) on both windows. This is a destructive copy as blanks are copied.
RETURN VALUES
The overlay and overwrite functions return OK on success and ERR on error.