Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ab7886b7
Commit
ab7886b7
authored
Apr 26, 2017
by
Eijebong
Committed by
Xiang Zhang
Apr 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-30101: Add support for curses.A_ITALIC. (#1015)
parent
8ca2f2fa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
0 deletions
+11
-0
Doc/library/curses.rst
Doc/library/curses.rst
+5
-0
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+2
-0
Modules/_cursesmodule.c
Modules/_cursesmodule.c
+3
-0
No files found.
Doc/library/curses.rst
View file @
ab7886b7
...
...
@@ -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.
...
...
Misc/ACKS
View file @
ab7886b7
...
...
@@ -1116,6 +1116,7 @@ Koray Oner
Piet van Oostrum
Tomas Oppelstrup
Jason Orendorff
Bastien Orivel
Douglas Orr
William Orr
Michele Orrù
...
...
Misc/NEWS
View file @
ab7886b7
...
...
@@ -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.
...
...
Modules/_cursesmodule.c
View file @
ab7886b7
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment