xref: /minix3/lib/libcurses/curses_chgat.3 (revision 0c3ae37f525eceade8dc047e551f5c9cb33faeb1)
1*0c3ae37fSLionel Sambuc.\" $NetBSD: curses_chgat.3,v 1.5 2011/02/10 08:54:12 blymn Exp $
251ffecc1SBen Gras.\"
351ffecc1SBen Gras.\" Copyright (c) 2009 The NetBSD Foundation, Inc.
451ffecc1SBen Gras.\" All rights reserved.
551ffecc1SBen Gras.\"
651ffecc1SBen Gras.\" This code is derived from software contributed to The NetBSD Foundation
751ffecc1SBen Gras.\" by Joerg Sonnenberger.
851ffecc1SBen Gras.\"
951ffecc1SBen Gras.\" Redistribution and use in source and binary forms, with or without
1051ffecc1SBen Gras.\" modification, are permitted provided that the following conditions
1151ffecc1SBen Gras.\" are met:
1251ffecc1SBen Gras.\" 1. Redistributions of source code must retain the above copyright
1351ffecc1SBen Gras.\"    notice, this list of conditions and the following disclaimer.
1451ffecc1SBen Gras.\" 2. Redistributions in binary form must reproduce the above copyright
1551ffecc1SBen Gras.\"    notice, this list of conditions and the following disclaimer in the
1651ffecc1SBen Gras.\"    documentation and/or other materials provided with the distribution.
1751ffecc1SBen Gras.\"
1851ffecc1SBen Gras.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
1951ffecc1SBen Gras.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2051ffecc1SBen Gras.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2151ffecc1SBen Gras.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2251ffecc1SBen Gras.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2351ffecc1SBen Gras.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2451ffecc1SBen Gras.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2551ffecc1SBen Gras.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2651ffecc1SBen Gras.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2751ffecc1SBen Gras.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2851ffecc1SBen Gras.\" POSSIBILITY OF SUCH DAMAGE.
2951ffecc1SBen Gras.\"
3051ffecc1SBen Gras.Dd July 6, 2009
3151ffecc1SBen Gras.Dt CURSES_CHGAT 3
3251ffecc1SBen Gras.Os
3351ffecc1SBen Gras.Sh NAME
3451ffecc1SBen Gras.Nm chgat ,
3551ffecc1SBen Gras.Nm wchgat ,
3651ffecc1SBen Gras.Nm mvchgat ,
3751ffecc1SBen Gras.Nm mvwchgat
3851ffecc1SBen Gras.Nd curses on-screen attribute manipulation routines
3951ffecc1SBen Gras.Sh LIBRARY
4051ffecc1SBen Gras.Lb libcurses
4151ffecc1SBen Gras.Sh SYNOPSIS
4251ffecc1SBen Gras.In curses.h
4351ffecc1SBen Gras.Ft int
4451ffecc1SBen Gras.Fn chgat "int n" "attr_t attr" "short color" "const void *opts"
4551ffecc1SBen Gras.Ft int
4651ffecc1SBen Gras.Fn wchgat "WINDOW *win" "int n" "attr_t attr" "short color" \
4751ffecc1SBen Gras"const void *opts"
4851ffecc1SBen Gras.Ft int
4951ffecc1SBen Gras.Fn mvchgat "int y" "int x" "int n" "attr_t attr" "short color" \
5051ffecc1SBen Gras"const void *opts"
5151ffecc1SBen Gras.Ft int
5251ffecc1SBen Gras.Fn mvwchgat "WINDOW *win" "int y" "int x" "int n" "attr_t attr" \
5351ffecc1SBen Gras"short color" "const void *opts"
5451ffecc1SBen Gras.Sh DESCRIPTION
5551ffecc1SBen GrasThese functions modify the attributes of the drawn content on stdscr or
5651ffecc1SBen Grason the specified window.
5751ffecc1SBen Gras.Pp
5851ffecc1SBen GrasThe
5951ffecc1SBen Gras.Fn chgat
6051ffecc1SBen Grasfunction sets the attributes of the next
6151ffecc1SBen Gras.Fa n
6251ffecc1SBen Grascharacters to
6351ffecc1SBen Gras.Fa attr
6451ffecc1SBen Grasand the color pair to
6551ffecc1SBen Gras.Fa color .
6651ffecc1SBen GrasIf
6751ffecc1SBen Gras.Fa n
68*0c3ae37fSLionel Sambucis negative or larger than the remainder of the line, it gets truncated.
6951ffecc1SBen Gras.Pp
7051ffecc1SBen GrasThe
7151ffecc1SBen Gras.Fn wchgat
7251ffecc1SBen Grasis the same as the
7351ffecc1SBen Gras.Fn chgat
7451ffecc1SBen Grasfunction, excepting that the attributes are changed in the window specified by
7551ffecc1SBen Gras.Fa win .
7651ffecc1SBen Gras.Pp
7751ffecc1SBen GrasThe
7851ffecc1SBen Gras.Fn mvchgat
7951ffecc1SBen Grasand
8051ffecc1SBen Gras.Fn mvwchgat
8151ffecc1SBen Grasfunctions are the same as the
8251ffecc1SBen Gras.Fn chgat
8351ffecc1SBen Grasand
8451ffecc1SBen Gras.Fn wchgat
8551ffecc1SBen Grasfunctions, respectively, excepting that they operate from the position
8651ffecc1SBen Grasspecified by
8751ffecc1SBen Gras.Fa y ,
8851ffecc1SBen Gras.Fa x .
8951ffecc1SBen Gras.Pp
9051ffecc1SBen GrasThese functions do not perform wrapping.
9151ffecc1SBen GrasThey do not update the cursor position.
9251ffecc1SBen Gras.Sh RETURN VALUES
9351ffecc1SBen GrasThe functions that return an int will return one of the following
9451ffecc1SBen Grasvalues:
9551ffecc1SBen Gras.Pp
9651ffecc1SBen Gras.Bl -tag -width ERR -compact
9751ffecc1SBen Gras.It Er OK
9851ffecc1SBen GrasThe function completed successfully.
9951ffecc1SBen Gras.It Er ERR
10051ffecc1SBen GrasAn error occurred in the function.
10151ffecc1SBen Gras.El
10251ffecc1SBen Gras.Sh SEE ALSO
10351ffecc1SBen Gras.Xr curses_attributes 3
10451ffecc1SBen Gras.Sh STANDARDS
10551ffecc1SBen GrasThe
10651ffecc1SBen Gras.Fn chgat ,
10751ffecc1SBen Gras.Fn wchgat ,
10851ffecc1SBen Gras.Fn mvchgat ,
10951ffecc1SBen Grasand
11051ffecc1SBen Gras.Fn mvwchgat
11151ffecc1SBen Grasfunctions conform to
11251ffecc1SBen Gras.St -xcurses4.2 .
11351ffecc1SBen Gras.Sh HISTORY
11451ffecc1SBen GrasThe Curses package appeared in
11551ffecc1SBen Gras.Bx 4.0 .
11651ffecc1SBen GrasSupport for the
11751ffecc1SBen Gras.Fn chgat
11851ffecc1SBen Grasfamily was added in
11951ffecc1SBen Gras.Nx 6.0 .
120