diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-08-09 21:11:07 (GMT) |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-08-09 21:11:07 (GMT) |
commit | 1ebd3f6c4bf8c20750064b06a82e8727ce50e72b (patch) | |
tree | 23e40c7a513d693a6f8be040cf299973ed63c6cc /Doc/lib/libcurses.tex | |
parent | 46a415167464d8a7234c4a79dc4f7df084211825 (diff) | |
download | cpython-1ebd3f6c4bf8c20750064b06a82e8727ce50e72b.zip cpython-1ebd3f6c4bf8c20750064b06a82e8727ce50e72b.tar.gz cpython-1ebd3f6c4bf8c20750064b06a82e8727ce50e72b.tar.bz2 |
Tweak curses.wrapper so it initializes colors if they are available.
Diffstat (limited to 'Doc/lib/libcurses.tex')
-rw-r--r-- | Doc/lib/libcurses.tex | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/lib/libcurses.tex b/Doc/lib/libcurses.tex index be8df0c..192a8ca 100644 --- a/Doc/lib/libcurses.tex +++ b/Doc/lib/libcurses.tex @@ -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. |