1*51ffecc1SBen Gras.\" $NetBSD: curses_echochar.3,v 1.3 2008/04/30 13:10:51 martin Exp $ 2*51ffecc1SBen Gras.\" Copyright (c) 2004 The NetBSD Foundation, Inc. 3*51ffecc1SBen Gras.\" All rights reserved. 4*51ffecc1SBen Gras.\" 5*51ffecc1SBen Gras.\" This code is derived from software contributed to The NetBSD Foundation 6*51ffecc1SBen Gras.\" by Julian Coleman. 7*51ffecc1SBen Gras.\" 8*51ffecc1SBen Gras.\" Redistribution and use in source and binary forms, with or without 9*51ffecc1SBen Gras.\" modification, are permitted provided that the following conditions 10*51ffecc1SBen Gras.\" are met: 11*51ffecc1SBen Gras.\" 1. Redistributions of source code must retain the above copyright 12*51ffecc1SBen Gras.\" notice, this list of conditions and the following disclaimer. 13*51ffecc1SBen Gras.\" 2. Redistributions in binary form must reproduce the above copyright 14*51ffecc1SBen Gras.\" notice, this list of conditions and the following disclaimer in the 15*51ffecc1SBen Gras.\" documentation and/or other materials provided with the distribution. 16*51ffecc1SBen Gras.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 17*51ffecc1SBen Gras.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 18*51ffecc1SBen Gras.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19*51ffecc1SBen Gras.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 20*51ffecc1SBen Gras.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21*51ffecc1SBen Gras.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22*51ffecc1SBen Gras.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23*51ffecc1SBen Gras.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24*51ffecc1SBen Gras.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25*51ffecc1SBen Gras.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26*51ffecc1SBen Gras.\" POSSIBILITY OF SUCH DAMAGE. 27*51ffecc1SBen Gras.\" 28*51ffecc1SBen Gras.Dd March 27, 2004 29*51ffecc1SBen Gras.Dt CURSES_ECHOCHAR 3 30*51ffecc1SBen Gras.Os 31*51ffecc1SBen Gras.Sh NAME 32*51ffecc1SBen Gras.Nm curses_echochar , 33*51ffecc1SBen Gras.Nm echochar , 34*51ffecc1SBen Gras.Nm wechochar , 35*51ffecc1SBen Gras.Nm pechochar 36*51ffecc1SBen Gras.Nd curses add characters and then refresh routines 37*51ffecc1SBen Gras.Sh LIBRARY 38*51ffecc1SBen Gras.Lb libcurses 39*51ffecc1SBen Gras.Sh SYNOPSIS 40*51ffecc1SBen Gras.In curses.h 41*51ffecc1SBen Gras.Ft int 42*51ffecc1SBen Gras.Fn echochar "const chtype ch" 43*51ffecc1SBen Gras.Ft int 44*51ffecc1SBen Gras.Fn wechochar "WINDOW *win" "const chtype ch" 45*51ffecc1SBen Gras.Ft int 46*51ffecc1SBen Gras.Fn pechochar "WINDOW *pad" "const chtype ch" 47*51ffecc1SBen Gras.Sh DESCRIPTION 48*51ffecc1SBen GrasThese functions add characters to 49*51ffecc1SBen Gras.Dv stdscr 50*51ffecc1SBen Grasor to the specified window or pad and then cause an immediate 51*51ffecc1SBen Gras.Fn refresh 52*51ffecc1SBen Grasof that window or pad. 53*51ffecc1SBen Gras.Pp 54*51ffecc1SBen GrasThe 55*51ffecc1SBen Gras.Fn echochar 56*51ffecc1SBen Grasfunction adds the character given in 57*51ffecc1SBen Gras.Fa ch 58*51ffecc1SBen Grasto 59*51ffecc1SBen Gras.Dv stdscr 60*51ffecc1SBen Grasat the current cursor position and advances the current cursor position by one. 61*51ffecc1SBen GrasAny character attributes set in 62*51ffecc1SBen Gras.Fa ch 63*51ffecc1SBen Graswill be merged with the background attributes currently set on 64*51ffecc1SBen Gras.Dv stdscr . 65*51ffecc1SBen Gras.Dv stdscr 66*51ffecc1SBen Grasis then refreshed. 67*51ffecc1SBen GrasCalling 68*51ffecc1SBen Gras.Fn echochar 69*51ffecc1SBen Grasis equivalent to calling 70*51ffecc1SBen Gras.Fn addch 71*51ffecc1SBen Grasfollowed by 72*51ffecc1SBen Gras.Fn refresh . 73*51ffecc1SBen Gras.Pp 74*51ffecc1SBen GrasThe 75*51ffecc1SBen Gras.Fn wechochar 76*51ffecc1SBen Grasfunction is the same as the 77*51ffecc1SBen Gras.Fn echochar 78*51ffecc1SBen Grasfunction, excepting that the character is added to the window specified by 79*51ffecc1SBen Gras.Fa win 80*51ffecc1SBen Grasand 81*51ffecc1SBen Gras.Fa win 82*51ffecc1SBen Grasis refreshed. 83*51ffecc1SBen Gras.Pp 84*51ffecc1SBen GrasThe 85*51ffecc1SBen Gras.Fn pechochar 86*51ffecc1SBen Grasfunction is the similar to the 87*51ffecc1SBen Gras.Fn echochar 88*51ffecc1SBen Grasfunction, excepting that the character is added to the pad specified by 89*51ffecc1SBen Gras.Fa pad 90*51ffecc1SBen Grasand 91*51ffecc1SBen Gras.Fa pad 92*51ffecc1SBen Grasis refreshed at its previous location on the screen. 93*51ffecc1SBen GrasCalling 94*51ffecc1SBen Gras.Fn pechochar 95*51ffecc1SBen Grasis equivalent to calling 96*51ffecc1SBen Gras.Fn addch 97*51ffecc1SBen Grasfollowed by 98*51ffecc1SBen Gras.Fn prefresh . 99*51ffecc1SBen Gras.Sh RETURN VALUES 100*51ffecc1SBen GrasThese functions will return one of the following values: 101*51ffecc1SBen Gras.Pp 102*51ffecc1SBen Gras.Bl -tag -width ERR -compact 103*51ffecc1SBen Gras.It Er OK 104*51ffecc1SBen GrasThe function completed successfully. 105*51ffecc1SBen Gras.It Er ERR 106*51ffecc1SBen GrasAn error occurred in the function. 107*51ffecc1SBen Gras.El 108*51ffecc1SBen Gras.Sh SEE ALSO 109*51ffecc1SBen Gras.Xr curses_addch 3 , 110*51ffecc1SBen Gras.Xr curses_attributes 3 , 111*51ffecc1SBen Gras.Xr curses_pad 3 , 112*51ffecc1SBen Gras.Xr curses_refresh 3 113*51ffecc1SBen Gras.Sh STANDARDS 114*51ffecc1SBen GrasThe 115*51ffecc1SBen Gras.Fn echochar , 116*51ffecc1SBen Gras.Fn wechochar , 117*51ffecc1SBen Grasand 118*51ffecc1SBen Gras.Fn pechochar 119*51ffecc1SBen Grasfunctions comply with the X/Open Curses specification, part of the 120*51ffecc1SBen GrasSingle Unix Specification. 121*51ffecc1SBen Gras.Sh HISTORY 122*51ffecc1SBen GrasThe Curses package appeared in 123*51ffecc1SBen Gras.Bx 4.0 . 124