Tweak curses.wrapper so it initializes colors if they are available.

This commit is contained in:
Eric S. Raymond 2000-08-09 21:11:07 +00:00
parent 46a4151674
commit 1ebd3f6c4b
3 changed files with 20 additions and 4 deletions

View file

@ -1300,8 +1300,9 @@ as its first argument, followed by any other arguments passed to
\function{wrapper()}.
\end{funcdesc}
Before calling the hook function, \function{wrapper()} turns on
cbreak mode, turns off echo, and enables the terminal keypad. On
exit (whether normally or by exception) it restores cooked mode,
turns on echo, and disables the terminal keypad.
Before calling the hook function, \function{wrapper()} turns on cbreak
mode, turns off echo, enables the terminal keypad, and initializes
colors if the terminal has color support. On exit (whether normally
or by exception) it restores cooked mode, turns on echo, and disables
the terminal keypad.