mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Tweak curses.wrapper so it initializes colors if they are available.
This commit is contained in:
parent
46a4151674
commit
1ebd3f6c4b
3 changed files with 20 additions and 4 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue