These functions are described in the XSI Curses standard, Issue 4.
Very old systems (before standardization) provide a different function
with the same name:
»
|
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.
|
»
|
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.
|
X/Open Curses does not specify
the size and layout of attributes, color and character values in
chtype; it is implementation-dependent.
This implementation uses 8 bits for character values.
An application using more bits, e.g., a Unicode value,
should use the wide-character equivalents to these functions.