Ncurses: Difference between revisions
add note about ESCDELAY and notimeout |
|||
| Line 1: | Line 1: | ||
==Escape== | |||
You can get Escape with no delay by using <tt>notimeout(3ncurses)</tt>, but this eliminates use of the function and arrow keys on terminals where those sequences are composed with Escape. You probably don't want that. You can use the ESCDELAY environment variable (see <tt>ncurses(3ncurses)</tt>) to change this (ncurses also provides a global of the same name). [[Vim]] uses a 25ms default. The ncurses default appears to be 1s (1000ms), which makes one's application feel kinda seasick when running on any reasonable connection (not to mention locally). This seems difficult to manipulate programaticly, though. :/ | |||
==Colors== | ==Colors== | ||
* When modifying the palette via <tt>init_color()</tt>, this only affects the normal form of the color. Using <tt>A_BOLD</tt> with the color, for instance, will not reflect palette changes. | * When modifying the palette via <tt>init_color()</tt>, this only affects the normal form of the color. Using <tt>A_BOLD</tt> with the color, for instance, will not reflect palette changes. | ||