Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

inch(3curses) [opensolaris man page]

curs_inch(3CURSES)					     Curses Library Functions						curs_inch(3CURSES)

NAME
curs_inch, inch, winch, mvinch, mvwinch - get a character and its attributes from a curses window SYNOPSIS
cc [ flag ... ] file ... -lcurses [ library ... ] #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
With these routines, the character, of type chtype, at the current position in the named window is returned. If any attributes are set for that position, their values are OR-ed into the value returned. Constants defined in <curses.h> can be used with the logical AND (&) opera- tor to extract the character or attributes alone. Attributes The following bit-masks can 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 ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
curses(3CURSES), attributes(5) NOTES
The header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h>. Note that all of these routines may be macros. SunOS 5.11 31 Dec 1996 curs_inch(3CURSES)

Check Out this Related Man Page

curs_inch(3CURSES)					     Curses Library Functions						curs_inch(3CURSES)

NAME
curs_inch, inch, winch, mvinch, mvwinch - get a character and its attributes from a curses window SYNOPSIS
cc [ flag ... ] file ... -lcurses [ library ... ] #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
With these routines, the character, of type chtype, at the current position in the named window is returned. If any attributes are set for that position, their values are OR-ed into the value returned. Constants defined in <curses.h> can be used with the logical AND (&) opera- tor to extract the character or attributes alone. Attributes The following bit-masks can 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 ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
curses(3CURSES), attributes(5) NOTES
The header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h>. Note that all of these routines may be macros. SunOS 5.10 31 Dec 1996 curs_inch(3CURSES)
Man Page

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

C shell script to convert from inches to meters and centimetres

Write a C shell script "in2ftcm" which uses arithmetic expansion to convert from inches to meters and centimetres, rounded down to the nearest whole number of centimetres. Input should be a whole number of inches, and you may assume. Explain your algorithm to determine the inches from the... (2 Replies)
Discussion started by: Ringo
2 Replies

2. UNIX for Dummies Questions & Answers

Removing the default 0.25 inch x-offset from postprint

I have set up a printer with lpadmin -p printername -o protocol=bsd,dest=hostname,banner=never -v /dev/null -m netstandard -T PS -I to get around some other problems as that the printer completely ignored the print jobs when it was originaly sent as plain text. Sending it as postscript also... (0 Replies)
Discussion started by: Lundgren
0 Replies

3. UNIX for Dummies Questions & Answers

command line util to convert mm to inches etc?

There must be a command line utility to convert metric -> us, mm to inches etc, but I don't remember seeing it. Any suggestions? Anything in the repositories? Thx. (4 Replies)
Discussion started by: koodawg
4 Replies