bpo-30101: Add support for curses.A_ITALIC. (#1015)

This commit is contained in:
Eijebong 2017-04-26 17:17:12 +02:00 committed by Xiang Zhang
parent 8ca2f2faef
commit ab7886b785
4 changed files with 11 additions and 0 deletions

View File

@ -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.

View File

@ -1116,6 +1116,7 @@ Koray Oner
Piet van Oostrum
Tomas Oppelstrup
Jason Orendorff
Bastien Orivel
Douglas Orr
William Orr
Michele Orrù

View File

@ -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.

View File

@ -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);