summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2017-06-16 03:20:07 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-06-16 03:20:07 (GMT)
commit116dd5eba60a940b35db6aaf4e8c998ac30ad440 (patch)
treee25397e51f8f281c9a8bfebe24bedaba01d5fd53 /Doc
parentc9318853bbe8d62cb72ed853b0ffb75311ea474c (diff)
downloadcpython-116dd5eba60a940b35db6aaf4e8c998ac30ad440.zip
cpython-116dd5eba60a940b35db6aaf4e8c998ac30ad440.tar.gz
cpython-116dd5eba60a940b35db6aaf4e8c998ac30ad440.tar.bz2
bpo-30176: Add missing curses cell attributes constants (GH-1302)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/curses.rst56
1 files changed, 46 insertions, 10 deletions
diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst
index 6bb4c7a..2786e51 100644
--- a/Doc/library/curses.rst
+++ b/Doc/library/curses.rst
@@ -1271,34 +1271,70 @@ The :mod:`curses` module defines the following data members:
A string representing the current version of the module. Also available as
:const:`__version__`.
-Several constants are available to specify character cell attributes:
+Some constants are available to specify character cell attributes.
+The exact constants available are system dependent.
+------------------+-------------------------------+
| Attribute | Meaning |
+==================+===============================+
-| ``A_ALTCHARSET`` | Alternate character set mode. |
+| ``A_ALTCHARSET`` | Alternate character set mode |
+------------------+-------------------------------+
-| ``A_BLINK`` | Blink mode. |
+| ``A_BLINK`` | Blink mode |
+------------------+-------------------------------+
-| ``A_BOLD`` | Bold mode. |
+| ``A_BOLD`` | Bold mode |
+------------------+-------------------------------+
-| ``A_ITALIC`` | Italic mode. |
+| ``A_DIM`` | Dim mode |
+------------------+-------------------------------+
-| ``A_DIM`` | Dim mode. |
+| ``A_INVIS`` | Invisible or blank mode |
+------------------+-------------------------------+
-| ``A_NORMAL`` | Normal attribute. |
+| ``A_ITALIC`` | Italic mode |
++------------------+-------------------------------+
+| ``A_NORMAL`` | Normal attribute |
++------------------+-------------------------------+
+| ``A_PROTECT`` | Protected mode |
+------------------+-------------------------------+
| ``A_REVERSE`` | Reverse background and |
-| | foreground colors. |
+| | foreground colors |
++------------------+-------------------------------+
+| ``A_STANDOUT`` | Standout mode |
++------------------+-------------------------------+
+| ``A_UNDERLINE`` | Underline mode |
++------------------+-------------------------------+
+| ``A_HORIZONTAL`` | Horizontal highlight |
++------------------+-------------------------------+
+| ``A_LEFT`` | Left highlight |
++------------------+-------------------------------+
+| ``A_LOW`` | Low highlight |
++------------------+-------------------------------+
+| ``A_RIGHT`` | Right highlight |
+------------------+-------------------------------+
-| ``A_STANDOUT`` | Standout mode. |
+| ``A_TOP`` | Top highlight |
+------------------+-------------------------------+
-| ``A_UNDERLINE`` | Underline mode. |
+| ``A_VERTICAL`` | Vertical highlight |
++------------------+-------------------------------+
+| ``A_CHARTEXT`` | Bit-mask to extract a |
+| | character |
+------------------+-------------------------------+
.. versionadded:: 3.7
``A_ITALIC`` was added.
+Several constants are available to extract corresponding attributes returned
+by some methods.
+
++------------------+-------------------------------+
+| Bit-mask | Meaning |
++==================+===============================+
+| ``A_ATTRIBUTES`` | Bit-mask to extract |
+| | attributes |
++------------------+-------------------------------+
+| ``A_CHARTEXT`` | Bit-mask to extract a |
+| | character |
++------------------+-------------------------------+
+| ``A_COLOR`` | Bit-mask to extract |
+| | color-pair field information |
++------------------+-------------------------------+
+
Keys are referred to by integer constants with names starting with ``KEY_``.
The exact keycaps available are system dependent.