@@ -1234,27 +1234,63 @@ The :mod:`curses` module defines the following data members:
1234
1234
A string representing the current version of the module. Also available as
1235
1235
:const: `__version__ `.
1236
1236
1237
- Several constants are available to specify character cell attributes:
1237
+ Some constants are available to specify character cell attributes.
1238
+ The exact constants available are system dependent.
1238
1239
1239
1240
+------------------+-------------------------------+
1240
1241
| Attribute | Meaning |
1241
1242
+==================+===============================+
1242
- | ``A_ALTCHARSET `` | Alternate character set mode. |
1243
+ | ``A_ALTCHARSET `` | Alternate character set mode |
1243
1244
+------------------+-------------------------------+
1244
- | ``A_BLINK `` | Blink mode. |
1245
+ | ``A_BLINK `` | Blink mode |
1245
1246
+------------------+-------------------------------+
1246
- | ``A_BOLD `` | Bold mode. |
1247
+ | ``A_BOLD `` | Bold mode |
1247
1248
+------------------+-------------------------------+
1248
- | ``A_DIM `` | Dim mode. |
1249
+ | ``A_DIM `` | Dim mode |
1249
1250
+------------------+-------------------------------+
1250
- | ``A_NORMAL `` | Normal attribute. |
1251
+ | ``A_INVIS `` | Invisible or blank mode |
1252
+ +------------------+-------------------------------+
1253
+ | ``A_NORMAL `` | Normal attribute |
1254
+ +------------------+-------------------------------+
1255
+ | ``A_PROTECT `` | Protected mode |
1251
1256
+------------------+-------------------------------+
1252
1257
| ``A_REVERSE `` | Reverse background and |
1253
- | | foreground colors. |
1258
+ | | foreground colors |
1259
+ +------------------+-------------------------------+
1260
+ | ``A_STANDOUT `` | Standout mode |
1261
+ +------------------+-------------------------------+
1262
+ | ``A_UNDERLINE `` | Underline mode |
1263
+ +------------------+-------------------------------+
1264
+ | ``A_HORIZONTAL `` | Horizontal highlight |
1265
+ +------------------+-------------------------------+
1266
+ | ``A_LEFT `` | Left highlight |
1267
+ +------------------+-------------------------------+
1268
+ | ``A_LOW `` | Low highlight |
1269
+ +------------------+-------------------------------+
1270
+ | ``A_RIGHT `` | Right highlight |
1271
+ +------------------+-------------------------------+
1272
+ | ``A_TOP `` | Top highlight |
1273
+ +------------------+-------------------------------+
1274
+ | ``A_VERTICAL `` | Vertical highlight |
1275
+ +------------------+-------------------------------+
1276
+ | ``A_CHARTEXT `` | Bit-mask to extract a |
1277
+ | | character |
1278
+ +------------------+-------------------------------+
1279
+
1280
+ Several constants are available to extract corresponding attributes returned
1281
+ by some methods.
1282
+
1283
+ +------------------+-------------------------------+
1284
+ | Bit-mask | Meaning |
1285
+ +==================+===============================+
1286
+ | ``A_ATTRIBUTES `` | Bit-mask to extract |
1287
+ | | attributes |
1254
1288
+------------------+-------------------------------+
1255
- | ``A_STANDOUT `` | Standout mode. |
1289
+ | ``A_CHARTEXT `` | Bit-mask to extract a |
1290
+ | | character |
1256
1291
+------------------+-------------------------------+
1257
- | ``A_UNDERLINE `` | Underline mode. |
1292
+ | ``A_COLOR `` | Bit-mask to extract |
1293
+ | | color-pair field information |
1258
1294
+------------------+-------------------------------+
1259
1295
1260
1296
Keys are referred to by integer constants with names starting with ``KEY_ ``.
0 commit comments