mv[w]addch

Move the cursor to coordinates (y,x) and add a character to the specified window.

Format

#include  <curses.h>

int mvaddch  (int y, int x, char ch);

int mvwaddch  (WINDOW *win, int y, int x,
              char ch);

Arguments

win
A pointer to the window.
y
A window coordinate.
x
A window coordinate.
ch
If this argument is a new-line character (\n), the mvaddch and mvwaddch functions clear the line to the end, and move the cursor to the next line at the same x coordinate. A carriage return (\r) moves the cursor to the beginning of the specified line. A tab (\t) moves the cursor to the next tabstop within the window.

Description

This routine performs the same function as mvwaddch, but on the stdscr window.

When mvwaddch is used on a subwindow, it writes the character onto the underlying window as well.

Return Values
OK  Indicates success. 
ERR  Indicates that writing the character would cause the screen to scroll illegally. For more information, see the scrollok function in this section. 


Previous Page | Next Page | Table of Contents | Index