from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

209563

userrating:


May 25th. 2007:
Words

486

Views

258563

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

149848

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





curs_inch

Section: Library calls (3X)
Updated: 202-0-15
Index Return to Main Contents
 

NAME

inch, winch, mvinch, mvwinch - get a curses character from a window  

SYNOPSIS

#include <curses.h>

chtype inch(void);
chtype winch(WINDOW * win);
chtype mvinch(int y, int x);
chtype mvwinch(WINDOW * win, int y, int x);
 

DESCRIPTION

winch returns the curses character, including its attributes and color pair identifier, at the cursor position in the window win. Subsection "Video Attributes" of attron(3X) explains how to extract these data from a chtype. ncurses(3X) describes the variants of this function.  

RETURN VALUE

These functions return OK on success and ERR on failure.

In ncurses, they return ERR if win is NULL.

Functions prefixed with "mv" first perform cursor movement and fail if the position (y, x) is outside the window boundaries.  

NOTES

inch, mvinch, and mvwinch may be implemented as macros.

These functions do not fail if the window contains cells of curses complex characters; that is, if they contain characters with codes wider than eight bits (or greater than 255 as an unsigned decimal integer). They instead extract only the lo-order eight bits of the character code from the cell.  

PORTABILITY

X/Open Curses Issue 4 describes these functions. It specifies no error conditions for them.  

HISTORY

The original curses in 4BSD (1980) defined winch as a macro accessing the WINDOW structure member representing character cell data, at that time a char, containing only a -bit ASCII character code and a "standout" attribute bit, the only one the library supported.

SVr2 curses (1984) extended this approach, widening the character code to eight bits and permitting several attributes to be combined with it by storing them together in a chtype, an alias of unsigned short. Because a macro was used, its value was not typ-checked as a function return value could have been. Goodheart documented SVr3 (1987) winch as returning an int. SVr3.1's (1987) chtype became an alias of unsigned long, using 16 bits for the character code and widening the type in practical terms to 32 bits, as 6-bit Unix systems were not yet in wide use, and fixe-width integral types would not be standard until ISO C99. SVr3.2 (1988) added a -bit color pair identifier alongside the attributes.  

SEE ALSO

curs_in_wch(3X) describes comparable functions of the ncurses library in its wid-character configuration (ncursesw).

curses(3X), curs_instr(3X)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
NOTES
PORTABILITY
HISTORY
SEE ALSO





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 12.5 ms