[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions , Volume 2


attrset or wattrset Subroutine

Purpose

Sets the current attributes of a window to the specified attributes.

Libraries

Curses Library (libcurses.a)

Syntax


#include <curses.h>


attrset( Attributes)
char *Attributes;
wattrset( Window, Attributes)
WINDOW *Window;
char *Attributes;

Description

The attrset and wattrset subroutines set the current attributes of a window to the specified attributes. The attrset subroutine sets the current attribute of stdscr. The wattrset subroutine sets the current attribute of the specified window.

Parameters


Attributes Specifies which attributes to set.
Window Specifies the window in which to set the attributes.

Examples

  1. To set the current attribute in the stdscr global variable to blink, enter:

    attrset(A_BLINK);
    
  2. To set the current attribute in the user-defined window my_window to blinking, enter:

    wattrset(my_window, A_BLINK);
    
  3. To turn off all attributes in the stdscr global variable, enter:

    attrset(0);
    
  4. To turn off all attributes in the user-defined window my_window, enter:

    wattrset(my_window, 0);
    

Implementation Specifics

These subroutines are part of Base Operating System (BOS) Runtime.

Related Information

Curses Overview for Programming in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.

List of Curses Subroutines in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.

Setting Video Attributes and Curses Options in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]