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

Technical Reference: Base Operating System and Extensions, Volume 2

echochar or wechochar Subroutines

Purpose

Echos single-byte character and rendition to a window and refreshes the window.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>

int echochar(const chtype ch);

int wechochar(WINDOW *win,
const chtype ch);

Description

The echochar subroutine is equivalent to a call to the addch soubroutine followed by a call to the refresh subroutine.

The wechochar subroutine is equivalent to a call to the waddch subroutine followed by a call to the wrefresh subroutine.

Return Values

Upon successful completion, these subroutines return OK. Otherwise, they return ERR.

Example

To output the character I to the stdscr at the present cursor location and to update the physical screen, do the following:

echochar('I');

Related Information

The addch, doupdate, echo_wchar, waddch, wmvaddch, and mvaddch (addch, mvaddch, mvwaddch, or waddch Subroutine) subroutines.

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

Manipulating Characters with Curses 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 ]