NAME
addstr, addnstr, waddstr, waddnstr, mvaddstr, mvaddnstr, mvwaddstr, mvwaddnstr - add a string of characters to a curses window and advance cursor
SYNOPSIS
#include <curses.h> int addstr(const char *str); int addnstr(const char *str, int n); int waddstr(WINDOW *win, const char *str); int waddnstr(WINDOW *win, const char *str, int n); int mvaddstr(int y, int x, const char *str); int mvaddnstr(int y, int x, const char *str, int n); int mvwaddstr(WINDOW *win, int y, int x, const char *str); int mvwaddnstr(WINDOW *win, int y, int x, const char *str, int n);
DESCRIPTION
These functions write the (null-terminated) character string str on the given window. It is similar to calling waddch once for each character in the string. The mv functions perform cursor movement once, before writing any characters. Thereafter, the cursor is advanced as a side-effect of writing to the window. The four functions with n as the last argument write at most n characters, or until a terminating null is reached. If n is -1, then the entire string will be added.
RETURN VALUE
All functions return the integer ERR upon failure and OK on success. X/Open does not define any error conditions. This implementation returns an error · if the window pointer is null or · if the string pointer is null or · if the corresponding calls to waddch return an error. Functions with a "mv" prefix first perform a cursor movement using wmove, and return an error if the position is outside the window, or if the window pointer is null.
NOTES
All of these functions except waddnstr may be macros.
PORTABILITY
These functions are described in the XSI Curses standard, Issue 4.
SEE ALSO
ncurses(3NCURSES), addch(3NCURSES). addstr(3NCURSES)
More Linux Commands
manpages/gnutls_x509_trust_list_verify_named_crt.3.html
gnutls_x509_trust_list_verify_named_crt(3) - API function...
This function will try to find a matching named certificate. If a match is found the certificate is considered valid. In addition to that this function will als
manpages/Tcl_UniCharIsAlpha.3.html
Tcl_UniCharIsAlpha(3) - routines for classification of Tcl_U
All of the routines described examine Tcl_UniChars and return a boolean value. A non-zero return value means that the character does belong to the character cla
manpages/XWriteBitmapFile.3.html
XWriteBitmapFile(3) - manipulate bitmaps - Linux man page...
The XReadBitmapFile function reads in a file containing a bitmap. The file is parsed in the encoding of the current locale. The ability to read other than the s
manpages/rmdir.1.html
rmdir(1) - remove empty directories - Linux manual page.....
Remove the DIRECTORY(ies), if they are empty. --ignore-fail-on-non-empty ignore each failure that is solely because a directory is non-empty -p, --parents remov
manpages/isupper.3.html
isupper(3) - character classification routines (Man Page)...
These functions check whether c, which must have the value of an unsigned char or EOF, falls into a certain character class according to the specified locale. T
manpages/pnmtopclxl.1.html
pnmtopclxl(1) - convert a PNM image to an HP LaserJet PCL XL
This program is part of Netpbm(1) pnmtopclxl reads one or more PNM input streams, each containing one or more PNM images, and generates a sequence of output pag
manpages/getutmp.3.html
getutmp(3) - copy utmp structure to utmpx, and vice versa...
The getutmp() function copies the fields of the utmpx structure pointed to by ux to the corresponding fields of the utmp structure pointed to by u. The getutmpx
manpages/numastat.8.html
numastat(8) - Print statistics about NUMA memory allocation
numastat with no command options or arguments at all, displays per-node NUMA hit and miss system statistics from the kernel memory allocator. This default numas
manpages/glTexCoord1fv.3gl.html
glTexCoord1fv(3gl) - set the current texture coordinates....
glTexCoord specifies texture coordinates in one, two, three, or four dimensions. glTexCoord1 sets the current texture coordinates to (s, 0, 0, 1); a call to glT
manpages/Tk_GetMMFromObj.3.html
Tk_GetMMFromObj(3) - translate between strings and screen un
These procedures take as argument a specification of distance on the screen (objPtr or string) and compute the corresponding distance either in integer pixels o
manpages/ps2ascii.1.html
ps2ascii(1) - Ghostscript translator from PostScript or PDF
ps2ascii uses gs(1) to extract ASCII text from PostScript(tm) or Adobe Portable Document Format (PDF) files. If no files are specified on the command line, gs r
manpages/timerfd_gettime.2.html
timerfd_gettime(2) - timers that notify via file descriptors
These system calls create and operate on a timer that delivers timer expiration notifications via a file descriptor. They provide an alternative to the use of s
