addchstr(3ncurses)


NAME

   addchstr, addchnstr, waddchstr, waddchnstr, mvaddchstr, mvaddchnstr,
   mvwaddchstr, mvwaddchnstr - add a string of characters (and attributes)
   to a curses window

SYNOPSIS

   #include <curses.h>

   int addchstr(const chtype *chstr);
   int addchnstr(const chtype *chstr, int n);
   int waddchstr(WINDOW *win, const chtype *chstr);
   int waddchnstr(WINDOW *win, const chtype *chstr, int n);
   int mvaddchstr(int y, int x, const chtype *chstr);
   int mvaddchnstr(int y, int x, const chtype *chstr, int n);
   int mvwaddchstr(WINDOW *win, int y, int x, const chtype *chstr);
   int mvwaddchnstr(WINDOW *win, int y, int x, const chtype *chstr, int n);

DESCRIPTION

   These  functions copy the (null-terminated) chstr array into the window
   image structure starting at the  current  cursor  position.   The  four
   functions  with  n as the last argument copy at most n elements, but no
   more than will fit on the line.   If  n=-1  then  the  whole  array  is
   copied, to the maximum number of characters that will fit on the line.

   The  window  cursor  is not advanced.  These functions work faster than
   waddnstr.  On the other hand:

   ·   they do not perform checking (such as for the  newline,  backspace,
       or carriage return characters),

   ·   they do not advance the current cursor position,

   ·   they do not expand other control characters to ^-escapes, and

   ·   they  truncate  the  string  if it crosses the right margin, rather
       than wrapping it around to the new line.

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.

   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 functions except waddchnstr may be macros.

PORTABILITY

   These entry points are described in the XSI Curses standard, Issue 4.

SEE ALSO

   addstr(3NCURSES), ncurses(3NCURSES).

   Comparable  functions  in  the  wide-character  (ncursesw)  library are
   described in add_wchstr(3NCURSES).

                                                        addchstr(3NCURSES)


More Linux Commands

manpages/expm1.3.html
expm1(3) - exponential minus 1 (Library - Linux man page)...
expm1(x) returns a value equivalent to exp(x) 1 It is computed in a way that is accurate even if the value of x is near zero-a case where exp(x) - 1 would be in

manpages/pthread_cleanup_push.3.html
pthread_cleanup_push(3) - push and pop thread cancellation c
These functions manipulate the calling threads stack of thread-cancellation clean-up handlers. A clean-up handler is a function that is automatically executed w

manpages/cleanup_digikamdb.1.html
cleanup_digikamdb(1) - Cleanup the digiKam databases to redu
cleanup_digikamdb will cleanup and optimize the digiKam database file. This will, in most cases, lead to a smaller database file size and an increased access sp

manpages/sigmask.3.html
sigmask(3) - BSD signal API (Library - Linux man page)......
These functions are provided in glibc as a compatibility interface for programs that make use of the historical BSD signal API. This API is obsolete: new applic

manpages/gai.conf.5.html
gai.conf(5) - getaddrinfo(3) configuration file (Man Page)
A call to getaddrinfo(3) might return multiple answers. According to RFC 3484 these answers must be sorted so that the answer with the highest success rate is f

manpages/setregid32.2.html
setregid32(2) - set real and/or effective user or group ID
setreuid() sets real and effective user IDs of the calling process. Supplying a value of -1 for either the real or effective user ID forces the system to leave

manpages/Bootloader::Core::LILO.3pm.html
Bootloader::Core::LILO(3pm) - LILO library for bootloader co
$obj_ref = Bootloader::Core::LILO-&gt;new (); Creates an instance of the Bootloader::Core::LILO class. $files_ref = Bootloader::Core::LILO-&gt;ListFiles (); Returns t

manpages/fmodl.3.html
fmodl(3) - floating-point remainder function (Man Page).....
The fmod() function computes the floating-point remainder of dividing x by y. The return value is x - n * y, where n is the quotient of x / y, rounded toward ze

manpages/glPixelMap.3gl.html
glPixelMap(3gl) - set up pixel transfer maps (Man Page).....
glPixelMap sets up translation tables, or maps, used by glCopyPixels, glCopyTexImage1D, glCopyTexImage2D, glCopyTexSubImage1D, glCopyTexSubImage2D, glCopyTexSub

manpages/pkttyagent.1.html
pkttyagent(1) Textual authentication helper - Linux man page
pkttyagent is used to start a textual authentication agent for the subject specified by either --process or --system-bus-name. If neither of these options are g

manpages/tseng.4.html
tseng(4) - Tseng Labs video driver - Linux manual page......
tseng is an Xorg driver for Tseng Labs video cards. THIS MAN PAGE NEEDS TO BE FILLED IN. SUPPORTED HARDWARE The tseng driver supports... CONFIGURATION DETAILS P

manpages/waddchnstr.3ncurses.html
waddchnstr(3ncurses) - add a string of characters (and attri
These functions copy the (null-terminated) chstr array into the window image structure starting at the current cursor position. The four functions with n as the





We can't live, work or learn in freedom unless the software we use is free.