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

Technical Reference: Base Operating System and Extensions, Volume 2

attron or wattron Subroutine

Purpose

Turns on specified attributes.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>


attron( Attributes)
char *Attributes;


wattron( Window, Attributes)
WINDOW *Window;
char *Attributes;

Description

The attron and wattron subroutines turn on specified attributes without affecting any others. The attron subroutine turns the specified attributes on in stdscr. The wattron subroutine turns the specified attributes on in the specified window.

Parameters

Attributes Specifies which attributes to turn on.
Window Specifies the window in which to turn on the specified attributes.

Examples

  1. To turn on the underlining attribute in stdscr, enter:
    attron(A_UNDERLINE);
  2. To turn on the underlining attribute in the user-defined window my_window, enter:
    wattron(my_window, A_UNDERLINE);

Related Information

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

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

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

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