HP 9000 Series 300 Tutorials Manual page 241

Device i/o and user interfacing hp-ux concepts and tutorials
Hide thumbs Also See for HP 9000 Series 300:
Table of Contents

Advertisement

addch(ch)
waddch ( win, ch)
mvaddch(y,x,ch)
mvwaddch ( win, y, x, ch)
Description of Curses Routines
Places character ch in window at current cursor position
for that window then advances cursor to next position.
If ch is a tab, newline, backspace, the cursor is moved
appropriately, but no text is altered. If ch is a control
character other than tab, newline, or backspace, the
character is drawn using
AX
notation (where
x
is a
printable character
preceded by
A
to indicate a
control character - see unctr 1 (ch) ). If the character
is placed at the right margin, an automatic newline is
performed. At the bottom of the scrolling region, the
region is scrolled up one line if scrollok is enabled.
ch parameter is an integer; not a character. addch
performs a bit-level logical OR between the 16-bit
character and the current attributes if any are active.
Highlighting of individual characters can also be handled
by the program if the current attributes are all zero
(disabled) by performing an equivalent bit-level logical
OR operation between the 7-bit character code in bit
positions 0 through 6 and selected video attribute bits
in bit positions 7 through 15 to create a single 16-bit
integer representing the character and its associated
highlighting attributes. If no highlighting attributes for
the window are currently active, any attributes added to
the character by the program or already present from the
source are preserved. If any are active, they are added to
the character and any attached attributes without altering
other attributes. Thus, you can copy text (including
attributes) from one place to another with inch and addch.
addch is used with
stdscr
window; waddch with window
win; mvaddch moves the cursor to row y, column x, then
places the character at that location; mvwaddch is identical
to mvaddch, but operates on a specified window win. If win
is not specified, default is to
stdscr.
All row and column
references are relative to the upper left corner whose comer
character position is represented by row 0, column O.
Curses Routines
2-5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp 9000 series 800

Table of Contents