Skip to content

Commit

Permalink
pythongh-118293: Add flags for launch feedback to subprocess module
Browse files Browse the repository at this point in the history
  • Loading branch information
tunedal committed Apr 26, 2024
1 parent e4cbcb1 commit 232cebc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Doc/library/subprocess.rst
Expand Up @@ -1066,6 +1066,21 @@ The :mod:`subprocess` module exposes the following constants.
Specifies that the :attr:`STARTUPINFO.wShowWindow` attribute contains
additional information.

.. data:: STARTF_FORCEONFEEDBACK

Tells Windows to display the *Working in Background* mouse cursor
while a process is launching. This is the default behavior for GUI
processes.

.. versionadded:: 3.13

.. data:: STARTF_FORCEOFFFEEDBACK

Tells Windows not to change to mouse cursor when launching the
process.

.. versionadded:: 3.13

.. data:: CREATE_NEW_CONSOLE

The new process has a new console, instead of inheriting its parent's
Expand Down
2 changes: 2 additions & 0 deletions Lib/subprocess.py
Expand Up @@ -83,6 +83,7 @@
STD_INPUT_HANDLE, STD_OUTPUT_HANDLE,
STD_ERROR_HANDLE, SW_HIDE,
STARTF_USESTDHANDLES, STARTF_USESHOWWINDOW,
STARTF_FORCEONFEEDBACK, STARTF_FORCEOFFFEEDBACK,
ABOVE_NORMAL_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS,
HIGH_PRIORITY_CLASS, IDLE_PRIORITY_CLASS,
NORMAL_PRIORITY_CLASS, REALTIME_PRIORITY_CLASS,
Expand All @@ -93,6 +94,7 @@
"STD_INPUT_HANDLE", "STD_OUTPUT_HANDLE",
"STD_ERROR_HANDLE", "SW_HIDE",
"STARTF_USESTDHANDLES", "STARTF_USESHOWWINDOW",
"STARTF_FORCEONFEEDBACK", "STARTF_FORCEOFFFEEDBACK",
"STARTUPINFO",
"ABOVE_NORMAL_PRIORITY_CLASS", "BELOW_NORMAL_PRIORITY_CLASS",
"HIGH_PRIORITY_CLASS", "IDLE_PRIORITY_CLASS",
Expand Down

0 comments on commit 232cebc

Please sign in to comment.