Ncurses: Difference between revisions
add note about ESCDELAY and notimeout |
|||
| Line 28: | Line 28: | ||
| ncurses-term | | ncurses-term | ||
|} | |} | ||
===Color attributes=== | |||
Using color pairs beyond 256 requires a 16-bit attribute. By default, only 8 bits are provided (see <tt>A_COLOR</tt>). Thus for instance <tt>wattron(w, COLOR_PAIR(260))</tt> is equivalent to <tt>wattron(w, COLOR_PAIR(4))</tt>. In order to use pairs above 256, drop <tt>COLOR_PAIR</tt>, and always refer to the pair via pointer using the <tt>void* opts</tt> parameter to functions like <tt>wattron</tt>. What, there is not such parameter? Ahhh, of course; you need to use <tt>wattr_on</tt>. Note the underscore, and hate life. | |||
==[[Unicode]]== | ==[[Unicode]]== | ||