Kaydet (Commit) ab7886b7 authored tarafından Eijebong's avatar Eijebong Kaydeden (comit) Xiang Zhang

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

üst 8ca2f2fa
...@@ -1282,6 +1282,8 @@ Several constants are available to specify character cell attributes: ...@@ -1282,6 +1282,8 @@ Several constants are available to specify character cell attributes:
+------------------+-------------------------------+ +------------------+-------------------------------+
| ``A_BOLD`` | Bold mode. | | ``A_BOLD`` | Bold mode. |
+------------------+-------------------------------+ +------------------+-------------------------------+
| ``A_ITALIC`` | Italic mode. |
+------------------+-------------------------------+
| ``A_DIM`` | Dim mode. | | ``A_DIM`` | Dim mode. |
+------------------+-------------------------------+ +------------------+-------------------------------+
| ``A_NORMAL`` | Normal attribute. | | ``A_NORMAL`` | Normal attribute. |
...@@ -1294,6 +1296,9 @@ Several constants are available to specify character cell attributes: ...@@ -1294,6 +1296,9 @@ Several constants are available to specify character cell attributes:
| ``A_UNDERLINE`` | Underline mode. | | ``A_UNDERLINE`` | Underline mode. |
+------------------+-------------------------------+ +------------------+-------------------------------+
.. versionadded:: 3.7
``A_ITALIC`` was added.
Keys are referred to by integer constants with names starting with ``KEY_``. Keys are referred to by integer constants with names starting with ``KEY_``.
The exact keycaps available are system dependent. The exact keycaps available are system dependent.
......
...@@ -1116,6 +1116,7 @@ Koray Oner ...@@ -1116,6 +1116,7 @@ Koray Oner
Piet van Oostrum Piet van Oostrum
Tomas Oppelstrup Tomas Oppelstrup
Jason Orendorff Jason Orendorff
Bastien Orivel
Douglas Orr Douglas Orr
William Orr William Orr
Michele Orrù Michele Orrù
......
...@@ -317,6 +317,8 @@ Extension Modules ...@@ -317,6 +317,8 @@ Extension Modules
Library Library
------- -------
- bpo-30101: Add support for curses.A_ITALIC.
- bpo-29822: inspect.isabstract() now works during __init_subclass__. Patch - bpo-29822: inspect.isabstract() now works during __init_subclass__. Patch
by Nate Soares. by Nate Soares.
......
...@@ -3335,6 +3335,9 @@ PyInit__curses(void) ...@@ -3335,6 +3335,9 @@ PyInit__curses(void)
SetDictInt("A_BLINK", A_BLINK); SetDictInt("A_BLINK", A_BLINK);
SetDictInt("A_DIM", A_DIM); SetDictInt("A_DIM", A_DIM);
SetDictInt("A_BOLD", A_BOLD); SetDictInt("A_BOLD", A_BOLD);
#ifdef A_ITALIC
SetDictInt("A_ITALIC", A_ITALIC);
#endif
SetDictInt("A_ALTCHARSET", A_ALTCHARSET); SetDictInt("A_ALTCHARSET", A_ALTCHARSET);
#if !defined(__NetBSD__) #if !defined(__NetBSD__)
SetDictInt("A_INVIS", A_INVIS); SetDictInt("A_INVIS", A_INVIS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment