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
9b9d58f0
Commit
9b9d58f0
authored
Jun 28, 2018
by
Thomas A Caswell
Committed by
Steve Dower
Jun 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-31546: Fix input hook integration (GH-7978)
parent
4d26c8a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Misc/NEWS.d/next/Windows/2018-06-27-23-33-54.bpo-31546.zJlap-.rst
...S.d/next/Windows/2018-06-27-23-33-54.bpo-31546.zJlap-.rst
+3
-0
Parser/myreadline.c
Parser/myreadline.c
+3
-0
No files found.
Misc/NEWS.d/next/Windows/2018-06-27-23-33-54.bpo-31546.zJlap-.rst
0 → 100644
View file @
9b9d58f0
Restore running PyOS_InputHook while waiting for user input at the prompt.
The restores integration of interactive GUI windows (such as Matplotlib
figures) with the prompt on Windows.
Parser/myreadline.c
View file @
9b9d58f0
...
...
@@ -114,6 +114,9 @@ _PyOS_WindowsConsoleReadline(HANDLE hStdIn)
wbuf
=
wbuf_local
;
wbuflen
=
sizeof
(
wbuf_local
)
/
sizeof
(
wbuf_local
[
0
])
-
1
;
while
(
1
)
{
if
(
PyOS_InputHook
!=
NULL
)
{
(
void
)(
PyOS_InputHook
)();
}
if
(
!
ReadConsoleW
(
hStdIn
,
&
wbuf
[
total_read
],
wbuflen
-
total_read
,
&
n_read
,
NULL
))
{
err
=
GetLastError
();
goto
exit
;
...
...
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