Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv15612
Modified Files:
curses.tex
Log Message:
Correct a case error.
Index: curses.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/curses.tex,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** curses.tex 2001/05/14 15:24:49 1.14
--- curses.tex 2001/05/31 07:02:21 1.15
***************
*** 342,346 ****
containing a foreground (or text) colour and a background colour. You
can get the attribute value corresponding to a colour pair with the
! \function{COLOR_PAIR()} function; this can be bitwise-OR'ed with other
attributes such as \constant{A_REVERSE}, but again, such combinations
are not guaranteed to work on all terminals.
--- 342,346 ----
containing a foreground (or text) colour and a background colour. You
can get the attribute value corresponding to a colour pair with the
! \function{color_pair()} function; this can be bitwise-OR'ed with other
attributes such as \constant{A_REVERSE}, but again, such combinations
are not guaranteed to work on all terminals.
***************
*** 349,353 ****
\begin{verbatim}
! stdscr.addstr( "Pretty text", curses.COLOR_PAIR(1) )
stdscr.refresh()
\end{verbatim}
--- 349,353 ----
\begin{verbatim}
! stdscr.addstr( "Pretty text", curses.color_pair(1) )
stdscr.refresh()
\end{verbatim}
***************
*** 378,382 ****
\begin{verbatim}
! stdscr.addstr(0,0, "RED ALERT!", curses.COLOR_PAIR(1) )
\end{verbatim}
--- 378,382 ----
\begin{verbatim}
! stdscr.addstr(0,0, "RED ALERT!", curses.color_pair(1) )
\end{verbatim}
|