summaryrefslogtreecommitdiff
path: root/Modules/_cursesmodule.c
diff options
context:
space:
mode:
authorEijebong <Eijebong@users.noreply.github.com>2017-04-26 17:17:12 +0200
committerXiang Zhang <angwerzx@126.com>2017-04-26 23:17:12 +0800
commitab7886b78574d9224b26dc3a5b08e5c105fbbf11 (patch)
treeeea5488c157c384333e35d19c8390f87fc54510b /Modules/_cursesmodule.c
parent8ca2f2faefa8dba323a2e4c4b86efb633d7a53cf (diff)
downloadcpython-git-ab7886b78574d9224b26dc3a5b08e5c105fbbf11.tar.gz
bpo-30101: Add support for curses.A_ITALIC. (#1015)
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r--Modules/_cursesmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 8f0a12bbb0..f278268e67 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -3335,6 +3335,9 @@ PyInit__curses(void)
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);