[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Base Operating System and Extensions Technical Reference, 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);

Implementation Specifics

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

Related Information

Curses Overview for Programming in AIX General Programming Concepts: Writing and Debugging Programs.

List of Curses Subroutines in AIX General Programming Concepts: Writing and Debugging Programs.

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


[ Previous | Next | Contents | Glossary | Home | Search ]