[Python-checkins] CVS: python/dist/src/Doc/lib libcurses.tex,1.14,1.15
Eric S. Raymond
python-dev@python.org
Wed, 9 Aug 2000 14:11:10 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv28543/Doc/lib
Modified Files:
libcurses.tex
Log Message:
Tweak curses.wrapper so it initializes colors if they are available.
Index: libcurses.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcurses.tex,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** libcurses.tex 2000/08/09 14:34:48 1.14
--- libcurses.tex 2000/08/09 21:11:07 1.15
***************
*** 1301,1307 ****
\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.
--- 1301,1308 ----
\end{funcdesc}
! 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.