@@ -1271,34 +1271,70 @@ The :mod:`curses` module defines the following data members:
1271
1271
A string representing the current version of the module. Also available as
1272
1272
:const: `__version__ `.
1273
1273
1274
- Several constants are available to specify character cell attributes:
1274
+ Some constants are available to specify character cell attributes.
1275
+ The exact constants available are system dependent.
1275
1276
1276
1277
+------------------+-------------------------------+
1277
1278
| Attribute | Meaning |
1278
1279
+==================+===============================+
1279
- | ``A_ALTCHARSET `` | Alternate character set mode. |
1280
+ | ``A_ALTCHARSET `` | Alternate character set mode |
1280
1281
+------------------+-------------------------------+
1281
- | ``A_BLINK `` | Blink mode. |
1282
+ | ``A_BLINK `` | Blink mode |
1282
1283
+------------------+-------------------------------+
1283
- | ``A_BOLD `` | Bold mode. |
1284
+ | ``A_BOLD `` | Bold mode |
1284
1285
+------------------+-------------------------------+
1285
- | ``A_ITALIC `` | Italic mode. |
1286
+ | ``A_DIM `` | Dim mode |
1286
1287
+------------------+-------------------------------+
1287
- | ``A_DIM `` | Dim mode. |
1288
+ | ``A_INVIS `` | Invisible or blank mode |
1288
1289
+------------------+-------------------------------+
1289
- | ``A_NORMAL `` | Normal attribute. |
1290
+ | ``A_ITALIC `` | Italic mode |
1291
+ +------------------+-------------------------------+
1292
+ | ``A_NORMAL `` | Normal attribute |
1293
+ +------------------+-------------------------------+
1294
+ | ``A_PROTECT `` | Protected mode |
1290
1295
+------------------+-------------------------------+
1291
1296
| ``A_REVERSE `` | Reverse background and |
1292
- | | foreground colors. |
1297
+ | | foreground colors |
1298
+ +------------------+-------------------------------+
1299
+ | ``A_STANDOUT `` | Standout mode |
1300
+ +------------------+-------------------------------+
1301
+ | ``A_UNDERLINE `` | Underline mode |
1302
+ +------------------+-------------------------------+
1303
+ | ``A_HORIZONTAL `` | Horizontal highlight |
1304
+ +------------------+-------------------------------+
1305
+ | ``A_LEFT `` | Left highlight |
1306
+ +------------------+-------------------------------+
1307
+ | ``A_LOW `` | Low highlight |
1308
+ +------------------+-------------------------------+
1309
+ | ``A_RIGHT `` | Right highlight |
1293
1310
+------------------+-------------------------------+
1294
- | ``A_STANDOUT `` | Standout mode. |
1311
+ | ``A_TOP `` | Top highlight |
1295
1312
+------------------+-------------------------------+
1296
- | ``A_UNDERLINE `` | Underline mode. |
1313
+ | ``A_VERTICAL `` | Vertical highlight |
1314
+ +------------------+-------------------------------+
1315
+ | ``A_CHARTEXT `` | Bit-mask to extract a |
1316
+ | | character |
1297
1317
+------------------+-------------------------------+
1298
1318
1299
1319
.. versionadded :: 3.7
1300
1320
``A_ITALIC `` was added.
1301
1321
1322
+ Several constants are available to extract corresponding attributes returned
1323
+ by some methods.
1324
+
1325
+ +------------------+-------------------------------+
1326
+ | Bit-mask | Meaning |
1327
+ +==================+===============================+
1328
+ | ``A_ATTRIBUTES `` | Bit-mask to extract |
1329
+ | | attributes |
1330
+ +------------------+-------------------------------+
1331
+ | ``A_CHARTEXT `` | Bit-mask to extract a |
1332
+ | | character |
1333
+ +------------------+-------------------------------+
1334
+ | ``A_COLOR `` | Bit-mask to extract |
1335
+ | | color-pair field information |
1336
+ +------------------+-------------------------------+
1337
+
1302
1338
Keys are referred to by integer constants with names starting with ``KEY_ ``.
1303
1339
The exact keycaps available are system dependent.
1304
1340
0 commit comments