| Main index | Section 3 | Options |
#include <curses.h>chtype inch(void); chtype winch(WINDOW *win);
chtype mvinch(int y, int x); chtype mvwinch(WINDOW *win, int y, int x);
The winch function does not return an error if the window contains characters larger than 8-bits (255). Only the low-order 8 bits of the character are used by winch.
Very old systems (before standardization) provide a different function with the same name:
| &#187; | The winch function was part of the original BSD curses library, which stored a 7-bit character combined with the standout attribute. |
| In BSD curses, winch returned only the character (as an integer) with the standout attribute removed. | |
| &#187; | System V curses added support for several video attributes which could be combined with characters in the window. |
| Reflecting this improvement, the function was altered to return the character combined with all video attributes in a chtype value. | |
curses(3X), curs_instr(3X)
| 2024-04-20 | curs_inch (3X) | ncurses 6.5 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | A typical Unix /bin or /usr/bin directory contains a hundred different kinds of programs, written by dozens of egotistical programmers, each with its own syntax, operating paradigm, rules of use ... strategies for specifying options, and different sets of constraints. | ” |
| — The Unix Haters' handbook | ||