Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

vidputs(3xcurses) [sunos man page]

vidattr(3XCURSES)					  X/Open Curses Library Functions					 vidattr(3XCURSES)

NAME
vidattr, vid_attr, vidputs, vid_puts - output attributes to the terminal SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib -R /usr/xpg4/lib -lcurses [ library... ] c89 [ flag... ] file... -lcurses [ library... ] #include <curses.h> int vidattr(chtype attr); int vid_attr(attr_t attr, short color_pair_number, void *opt); int vidputs(chtype attr, int (*putfunc) (int)); int vid_puts(attr_t attr, short color_pair_number, void *opt, int (*putfunc) (int)); PARAMETERS
attr Is the rendition of the foreground window. color_pair_number Is a color pair. opt Is reserved for future use. Currently, this must be a null pointer. putfunc Is a user-supplied output function. DESCRIPTION
These functions output commands to the terminal that change the terminal's attributes. If the terminfo database indicates that the terminal in use can display characters in the rendition specified by attr, then vidattr() out- puts one or more commands to request that the terminal display subsequent characters in that rendition. The function outputs by calling putchar(3C). The vidattr() function neither relies on your updates the model which Curses maintains of the prior rendition mode. The vidputs() function computes the terminal output string that vidattr() does, based on attr, but vidputs() outputs by calling the user- supplied function putfunc. The vid_attr() and vid_puts() functions correspond to vidattr() and vidputs() respectively, but take a set of arguments, one of type attr_t for the attributes, one of type short for the color pair number, and a void *, and thus support the attribute constants with the WA_ prefix. The opts argument is reserved for definition in a future release. Currently, it is implemented as a null pointer. The user-supplied function putfunc (which can be specified as an argument to either vidputs() or vid_puts()) is either putchar() or some other function with the same prototype. Both the vidputs() and vid_puts() functions ignore the return value of putfunc. RETURN VALUES
Upon successful completion, these functions return OK. Otherwise, they return ERR. ERRORS
No errors are defined. USAGE After use of any of these functions, the model Curses maintains of the state of the terminal might not match the actual state of the termi- nal. The application should touch and refresh the window before resuming conventional use of Curses. Of these functions requires that the application contain so much information about a particular class of terminal that it defeats the pur- pose of using Curses. On some terminals, a command to change rendition conceptually occupies space in the screen buffer (with or without width). Thus, a command to set the terminal to a new rendition would change the rendition of some characters already displayed. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
doupdate(3XCURSES), is_linetouched(3XCURSES), libcurses(3XCURSES), putchar(3C), tigetflag(3XCURSES), attributes(5), standards(5) SunOS 5.10 5 Jun 2002 vidattr(3XCURSES)

Check Out this Related Man Page

chgat(3XCURSES) 					  X/Open Curses Library Functions					   chgat(3XCURSES)

NAME
chgat, mvchgat, mvwchgat, wchgat - change the rendition of characters in a window SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib -R /usr/xpg4/lib -lcurses [ library... ] c89 [ flag... ] file... -lcurses [ library... ] #include <curses.h> int chgat(int n, attr_t attr, short color, const void *opts); int mvchgat(int y, int x, int n, attr_t attr, short color, const void *opts); int mvwchgat(WINDOW *win, int y, int x, int n, attr_t attr, short color, const void *opts); int wchgat(WINDOW *win, int n, attr_t attr, short color, const void *opts); DESCRIPTION
These functions change the renditions of the next n characters in the current or specified window (or of the remaining characters on the current or specified line, if n is -1), beginning at the current or specified cursor position. The attributes and colors are specified by attr and color as for setcchar(3XCURSES). These function neither update the cursor nor perform wrapping. A value of n that is greater than the remaining characters on a line is not an error. The opts argument is reserved for definition in a future release. Currently, the application must provide a null pointer for opts. PARAMETERS
n Is the number of characters whose rendition is to be changed. attr Is the set of attributes to be assigned to the characters. color Is the new color pair to be assigned to the characters. opts Is reserved for future use. Currently, this must be a null pointer. y Is the y (row) coordinate of the starting position in the window. x Is the x (column) coordinate of the starting position in the window. changed in the window. win Is a pointer to the window in which the rendition of characters is to be changed. RETURN VALUES
Upon successful completion, these functions returned OK. Otherwise, they return ERR. ERRORS
No errors are defined. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
bkgrnd(3XCURSES), libcurses(3XCURSES), setcchar(3XCURSES), attributes(5), standards(5) SunOS 5.10 5 Jun 2002 chgat(3XCURSES)
Man Page