1 .\" $NetBSD: curses_echochar.3,v 1.3 2008/04/30 13:10:51 martin Exp $
2 .\" Copyright (c) 2004 The NetBSD Foundation, Inc.
3 .\" All rights reserved.
5 .\" This code is derived from software contributed to The NetBSD Foundation
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 .\" POSSIBILITY OF SUCH DAMAGE.
36 .Nd curses add characters and then refresh routines
42 .Fn echochar "const chtype ch"
44 .Fn wechochar "WINDOW *win" "const chtype ch"
46 .Fn pechochar "WINDOW *pad" "const chtype ch"
48 These functions add characters to
50 or to the specified window or pad and then cause an immediate
52 of that window or pad.
56 function adds the character given in
60 at the current cursor position and advances the current cursor position by one.
61 Any character attributes set in
63 will be merged with the background attributes currently set on
69 is equivalent to calling
76 function is the same as the
78 function, excepting that the character is added to the window specified by
86 function is the similar to the
88 function, excepting that the character is added to the pad specified by
92 is refreshed at its previous location on the screen.
95 is equivalent to calling
100 These functions will return one of the following values:
102 .Bl -tag -width ERR -compact
104 The function completed successfully.
106 An error occurred in the function.
110 .Xr curses_attributes 3 ,
119 functions comply with the X/Open Curses specification, part of the
120 Single Unix Specification.
122 The Curses package appeared in