bpo-30101: Add support for curses.A_ITALIC. (#1015)
diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst
index d510855..8e509d5 100644
--- a/Doc/library/curses.rst
+++ b/Doc/library/curses.rst
@@ -1282,6 +1282,8 @@
+------------------+-------------------------------+
| ``A_BOLD`` | Bold mode. |
+------------------+-------------------------------+
+| ``A_ITALIC`` | Italic mode. |
++------------------+-------------------------------+
| ``A_DIM`` | Dim mode. |
+------------------+-------------------------------+
| ``A_NORMAL`` | Normal attribute. |
@@ -1294,6 +1296,9 @@
| ``A_UNDERLINE`` | Underline mode. |
+------------------+-------------------------------+
+.. versionadded:: 3.7
+ ``A_ITALIC`` was added.
+
Keys are referred to by integer constants with names starting with ``KEY_``.
The exact keycaps available are system dependent.
diff --git a/Misc/ACKS b/Misc/ACKS
index be2561c..fb62b5b 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1116,6 +1116,7 @@
Piet van Oostrum
Tomas Oppelstrup
Jason Orendorff
+Bastien Orivel
Douglas Orr
William Orr
Michele Orrù
diff --git a/Misc/NEWS b/Misc/NEWS
index d9b13c7..71db0ee 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -317,6 +317,8 @@
Library
-------
+- bpo-30101: Add support for curses.A_ITALIC.
+
- bpo-29822: inspect.isabstract() now works during __init_subclass__. Patch
by Nate Soares.
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 8f0a12b..f278268 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -3335,6 +3335,9 @@
SetDictInt("A_BLINK", A_BLINK);
SetDictInt("A_DIM", A_DIM);
SetDictInt("A_BOLD", A_BOLD);
+#ifdef A_ITALIC
+ SetDictInt("A_ITALIC", A_ITALIC);
+#endif
SetDictInt("A_ALTCHARSET", A_ALTCHARSET);
#if !defined(__NetBSD__)
SetDictInt("A_INVIS", A_INVIS);