diff options
author | Eijebong <Eijebong@users.noreply.github.com> | 2017-04-26 17:17:12 +0200 |
---|---|---|
committer | Xiang Zhang <angwerzx@126.com> | 2017-04-26 23:17:12 +0800 |
commit | ab7886b78574d9224b26dc3a5b08e5c105fbbf11 (patch) | |
tree | eea5488c157c384333e35d19c8390f87fc54510b | |
parent | 8ca2f2faefa8dba323a2e4c4b86efb633d7a53cf (diff) | |
download | cpython-git-ab7886b78574d9224b26dc3a5b08e5c105fbbf11.tar.gz |
bpo-30101: Add support for curses.A_ITALIC. (#1015)
-rw-r--r-- | Doc/library/curses.rst | 5 | ||||
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 2 | ||||
-rw-r--r-- | Modules/_cursesmodule.c | 3 |
4 files changed, 11 insertions, 0 deletions
diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst index d51085506c..8e509d50e6 100644 --- a/Doc/library/curses.rst +++ b/Doc/library/curses.rst @@ -1282,6 +1282,8 @@ Several constants are available to specify character cell attributes: +------------------+-------------------------------+ | ``A_BOLD`` | Bold mode. | +------------------+-------------------------------+ +| ``A_ITALIC`` | Italic mode. | ++------------------+-------------------------------+ | ``A_DIM`` | Dim mode. | +------------------+-------------------------------+ | ``A_NORMAL`` | Normal attribute. | @@ -1294,6 +1296,9 @@ Several constants are available to specify character cell attributes: | ``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. @@ -1116,6 +1116,7 @@ Koray Oner Piet van Oostrum Tomas Oppelstrup Jason Orendorff +Bastien Orivel Douglas Orr William Orr Michele OrrĂ¹ @@ -317,6 +317,8 @@ Extension Modules 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 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); |