curs_inch(3X)curs_inch(3X)NAME
inch, winch, mvinch, mvwinch - get a character and attributes from a curses 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
These routines return the character, of type chtype, at the current position in the named window. If any attributes are set for that posi-
tion, their values are OR'ed into the value returned. Constants defined in <curses.h> can be used with the & (logical AND) operator to
extract the character or attributes alone.
Attributes
The following bit-masks may be AND-ed with characters returned by winch.
A_CHARTEXT Bit-mask to extract character
A_ATTRIBUTES Bit-mask to extract attributes
A_COLOR Bit-mask to extract color-pair field information
RETURN VALUE
Functions with a "mv" prefix first perform a cursor movement using wmove, and return an error if the position is outside the window, or if
the window pointer is null.
NOTES
Note that all of these routines may be macros.
PORTABILITY
These functions are described in the XSI Curses standard, Issue 4.
SEE ALSO curses(3X).
Comparable functions in the wide-character (ncursesw) library are described in curs_in_wch(3X).
curs_inch(3X)
Check Out this Related Man Page
curs_inch(3X)curs_inch(3X)NAME
inch, winch, mvinch, mvwinch - get a character and attributes from a curses 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
These routines return the character, of type chtype, at the current position in the named window. If any attributes are set for that posi-
tion, their values are OR'ed into the value returned. Constants defined in <curses.h> can be used with the & (logical AND) operator to
extract the character or attributes alone.
Attributes
The following bit-masks may be AND-ed with characters returned by winch.
A_CHARTEXT Bit-mask to extract character
A_ATTRIBUTES Bit-mask to extract attributes
A_COLOR Bit-mask to extract color-pair field information
RETURN VALUE
Functions with a "mv" prefix first perform a cursor movement using wmove, and return an error if the position is outside the window, or if
the window pointer is null.
NOTES
Note that all of these routines may be macros.
PORTABILITY
These functions are described in the XSI Curses standard, Issue 4.
SEE ALSO curses(3X).
Comparable functions in the wide-character (ncursesw) library are described in curs_in_wch(3X).
curs_inch(3X)
Hi all,
How do I extract a value without special characters? I need to extract the value of %Used from below and if its greater than 80, need to send a notification.
I am doing this right now..Its giving 17%..Is there a way to extract the value and assign it to a variable in one step?
df |grep... (3 Replies)
Hi,
I would like extract from a file a character or pattern after ( n + 1) a specific pattern (n) . ( i supposed with awk)
how could i do ?
Thanks in advance. (1 Reply)
Hello All,
I am trying to extract a trademark character (™) from a varchar column in a DB2 Table. The result is to be placed in a sequential file in an AIX environment.
After the Extraction is complete when I view the extracted file I noticed that in place of the (™) Character another... (5 Replies)
Hi All,
I have scenario as below,
I want to cut the characters and store it variable2.. and want to display the variable2.. as shown below...
eg: the size may differs , i am show just an example.....
numbers are not fixed in variable1..i want to extract characters and... (1 Reply)
Hi All!!
I have a large file containing millions of records. My purpose is to extract 8 characters immediately from the given file.
222222222|ZRF|2008.pdf|2008|01/29/2009|001|B|C|C
222222222|ZRF|2009.pdf|2009|01/29/2010|001|B|C|C
222222222|ZRF|2010.pdf|2010|01/29/2011|001|B|C|C... (5 Replies)