1 .\" $NetBSD: curses_addchstr.3,v 1.3 2008/04/30 13:10:51 martin Exp $
4 .\" Douwe Kiela (virtus@wanadoo.nl)
5 .\" Copyright (c) 2003 The NetBSD Foundation, Inc.
6 .\" All rights reserved.
8 .\" This code is derived from software contributed to The NetBSD Foundation
9 .\" by Douwe Kiela (virtus@wanadoo.nl).
11 .\" Redistribution and use in source and binary forms, with or without
12 .\" modification, are permitted provided that the following conditions
14 .\" 1. Redistributions of source code must retain the above copyright
15 .\" notice, this list of conditions and the following disclaimer.
16 .\" 2. Redistributions in binary form must reproduce the above copyright
17 .\" notice, this list of conditions and the following disclaimer in the
18 .\" documentation and/or other materials provided with the distribution.
19 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 .\" POSSIBILITY OF SUCH DAMAGE.
45 .Nd curses add character strings to windows routines
51 .Fn addchstr "const chtype *chstr"
53 .Fn waddchstr "WINDOW *win" "const chtype *chstr"
55 .Fn mvaddchstr "int y" "int x" "const chtype *chstr"
57 .Fn mvwaddchstr "WINDOW *win" "int y" "int x" "const chtype *chstr"
59 .Fn addchnstr "const chtype *chstr" "int n"
61 .Fn waddchnstr "WINDOW *win" "const chtype *chstr" "int n"
63 .Fn mvaddchnstr "int y" "int x" "const chtype *chstr" "int n"
65 .Fn mvwaddchnstr "WINDOW *win" "int y" "int x" "const chtype *chstr" "int n"
67 These functions add character strings and attributes to
69 or to the specified window.
73 function will add the characters and their attributes passed in
77 starting at the current cursor position.
78 Any character attributes set in
80 will be merged with the background attributes currently set on
84 function does the same as
86 but adds the string to the window specified by
91 function will add the contents of
95 but will limit the number of characters added to be, at most,
101 will add the number of characters contained in the null terminated string
103 Any character attributes set in
105 will be merged with the background attributes currently set on
110 function does the same as
112 but adds the string to the window specified by
121 are the same as the functions
127 respectively, except that
129 is called to move the cursor to the position specified by
132 before the string is added to the window.
134 The functions will return one of the following values:
136 .Bl -tag -width ERR -compact
138 The function completed successfully.
140 An error occurred in the function.
144 .Xr curses_addstr 3 ,
145 .Xr curses_attributes 3 ,
146 .Xr curses_cursor 3 ,
151 Curses library complies with the X/Open Curses specification, part of the
152 Single Unix Specification.
154 These functions first appeared in