inch(3curses)


inch -- input a single-byte character and rendition from a window

Synopsis

cc [options] file -lcurses
#include <curses.h>

chtype inch(void);

chtype mvinch(int y, int x);

chtype mvwinch(WINDOW *win, int y, int x);

chtype winch(WINDOW *win);

Description

These functions return the character and rendition, of type chtype, at the current or specified position in the current or specified window.

Return value

Upon successful completion, the functions return the specified character and rendition. Otherwise, they return (chtype)ERR.

Errors

No errors are defined.

Usage

These functions are only guaranteed to operate reliably on character sets in which each character fits into a single byte, whose attributes can be expressed using only constants with the A_ prefix.

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

curses(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004