Skip to content

Commit ab7886b

Browse files
Eijebongzhangyangyu
authored andcommitted
bpo-30101: Add support for curses.A_ITALIC. (python#1015)
1 parent 8ca2f2f commit ab7886b

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

Doc/library/curses.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,6 +1282,8 @@ Several constants are available to specify character cell attributes:
12821282
+------------------+-------------------------------+
12831283
| ``A_BOLD`` | Bold mode. |
12841284
+------------------+-------------------------------+
1285+
| ``A_ITALIC`` | Italic mode. |
1286+
+------------------+-------------------------------+
12851287
| ``A_DIM`` | Dim mode. |
12861288
+------------------+-------------------------------+
12871289
| ``A_NORMAL`` | Normal attribute. |
@@ -1294,6 +1296,9 @@ Several constants are available to specify character cell attributes:
12941296
| ``A_UNDERLINE`` | Underline mode. |
12951297
+------------------+-------------------------------+
12961298

1299+
.. versionadded:: 3.7
1300+
``A_ITALIC`` was added.
1301+
12971302
Keys are referred to by integer constants with names starting with ``KEY_``.
12981303
The exact keycaps available are system dependent.
12991304

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,7 @@ Koray Oner
11161116
Piet van Oostrum
11171117
Tomas Oppelstrup
11181118
Jason Orendorff
1119+
Bastien Orivel
11191120
Douglas Orr
11201121
William Orr
11211122
Michele Orrù

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ Extension Modules
317317
Library
318318
-------
319319

320+
- bpo-30101: Add support for curses.A_ITALIC.
321+
320322
- bpo-29822: inspect.isabstract() now works during __init_subclass__. Patch
321323
by Nate Soares.
322324

Modules/_cursesmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3335,6 +3335,9 @@ PyInit__curses(void)
33353335
SetDictInt("A_BLINK", A_BLINK);
33363336
SetDictInt("A_DIM", A_DIM);
33373337
SetDictInt("A_BOLD", A_BOLD);
3338+
#ifdef A_ITALIC
3339+
SetDictInt("A_ITALIC", A_ITALIC);
3340+
#endif
33383341
SetDictInt("A_ALTCHARSET", A_ALTCHARSET);
33393342
#if !defined(__NetBSD__)
33403343
SetDictInt("A_INVIS", A_INVIS);

0 commit comments

Comments
 (0)