overlay(3cur)overlay(3cur)Name
overlay, overwrite - overlay windows
Syntax
#include <cursesX.h>
int overlay(srcwin, dstwin)
WINDOW *srcwin, *dstwin;
int overwrite(srcwin, dstwin)
WINDOW *srcwin, *dstwin;
Description
The routine copies all the text from the source window on top of the destination window 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 routine copies all of on top of The copy starts at (0, 0) on both windows. This is a destructive copy as blanks are copied.
Return Values
The and functions return OK on success and ERR on error.
overlay(3cur)
Check Out this Related Man Page
curs_overlay(3X)curs_overlay(3X)NAME
overlay, overwrite, copywin - overlay and manipulate overlapped curses windows
SYNOPSIS
#include <curses.h>
int overlay(const WINDOW *srcwin, WINDOW *dstwin);
int overwrite(const WINDOW *srcwin, WINDOW *dstwin);
int copywin(const WINDOW *srcwin, WINDOW *dstwin, int sminrow,
int smincol, int dminrow, int dmincol, int dmaxrow,
int dmaxcol, int overlay);
DESCRIPTION
The overlay and overwrite routines overlay srcwin on top of dstwin. scrwin and dstwin are not required to be the same size; only text
where the two windows overlap is copied. The difference is that overlay is non-destructive (blanks are not copied) whereas overwrite is
destructive.
The copywin routine provides a finer granularity of control over the overlay and overwrite routines. Like in the prefresh routine, a rec-
tangle is specified in the destination window, (dminrow, dmincol) and (dmaxrow, dmaxcol), and the upper-left-corner coordinates of the
source window, (sminrow, smincol). If the argument overlay is true, then copying is non-destructive, as in overlay.
RETURN VALUE
Routines that return an integer return ERR upon failure, and OK (SVr4 only specifies "an integer value other than ERR") upon successful
completion.
NOTES
Note that overlay and overwrite may be macros.
PORTABILITY
The XSI Curses standard, Issue 4 describes these functions (adding the const qualifiers). It further specifies their behavior in the pres-
ence of characters with multibyte renditions (not yet supported in this implementation).
SEE ALSO curses(3X), curs_pad(3X), curs_refresh(3X)curs_overlay(3X)
Dear All,
I have text file like this:
Header
Record 1
Record 2
.......
Record n
Tail
This line of code :
awk '{ if ( NR == 1 ) { head=substr($0,1,300);} else { last = substr($0,1,300);}END{printf "Header is : %-300s Trailer is : %-300s\n", head, last}' filename
converted Header... (11 Replies)
Hi all,
I am trying to overwrite some lines of a very big file.
I know the number of the line but I don't know how to point the cursor on its beginning. there is an option to notice the offset in lines?
thanks! (7 Replies)
How can I restrict a user from overwriting a file once he has uploaded it through FTP. He can view the file but can't delete or overwrite it. (OS is UNIX, there is no restriction on client FTP software)
Will be very glad if someone could resolve this problem.
Thanks
Imran Aziz Khan
... (7 Replies)
Hi all,
I am new to linux and got problem with pthread_mutex_trylock(). I have used mutex in my code. When I try to call pthread_mutex_trylock() on RECURSIVE type of mutex it overwrites adjacent memory location (that is global variable of type structure say x, memory allocated using malloc()). ... (5 Replies)
Hello all,
This might be a dumb question...but i am running into this situation.
I have a shell script that is currently in running state. It has big sql's in it and will run for few days. What happens if I change the shell now?
Eg: a.shl is running and i want to mv b.shl a.shl
I... (5 Replies)
Hi All Experts,
I hope you are all ok! :D
My question is simple but I was not able to find an answer in the internet, and that's why I am here!
My question is: when I sftp to a server and use "put -P" option to put a file, it keeps the file's full permission and access time. Check below... (5 Replies)
I bet many people faced this problem before:
The command below will result in a blank file:
$ cat myfile | grep pattern > myfile
Is there any easy way to do it? (8 Replies)
here is the contents of bigfile.sql
CREATE TABLE `Table11` (
`id` int(11) NOT NULL ,
`entityName` enum('Lines','EndUsers') COLLATE utf8_unicode_ci NOT NULL,
`parentAllianceMigrationProjectId` varchar(255) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2000 DEFAULT CHARSET=utf8... (30 Replies)
Hi,
I have written a small script to transfer a file from one unix server to other using scp command which is working fine. As I know with scp, if any file with the same name is already present on destination server, it would get overwritten without any notification to user. Could anyone help me... (14 Replies)
Hi guys,
been scratching round the forums and my mountain of resources.
Maybe I havn't read deep enough
My question is not how sed edits a stream and outputs it to a file, rather something like this below:
I have a .txt with some text in it :rolleyes:
abc:123:xyz
123:abc:987... (7 Replies)
Hello all,
I want to write auto update script for my embedded device, which can check and download newer version of my program and extract the files on the device.
The download center is hosted on remote web server .
Script checks the hosted file on web site and if the new version is there... (8 Replies)
Hello,
The problem I met is the conflict between the default command /usr/bin/sometools, which is an very old version at system setup, and an updated one I have installed in $HOME/download-software/sometools
How do I tell a third program to use the customized sometools instead of the default... (6 Replies)
Is there a way to append an existing xlsx worksheet to add data from a text file ?
I have an excel file for which I need to manipulate the first worksheet based on a text file.
I match the text file to the xlsx and write the 'Scores' column in the xlsx sheet and save the workbook.
For those ... (43 Replies)