mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
Marked keystrokes with the :kbd: role.
Fixed the case of the "Ctrl-" prefixes.
This commit is contained in:
parent
06171bd52a
commit
0424eaf753
19 changed files with 32 additions and 32 deletions
|
@ -853,7 +853,7 @@ the :meth:`BaseEventLoop.add_signal_handler` method::
|
|||
loop.add_signal_handler(getattr(signal, signame),
|
||||
functools.partial(ask_exit, signame))
|
||||
|
||||
print("Event loop running forever, press CTRL+c to interrupt.")
|
||||
print("Event loop running forever, press Ctrl+C to interrupt.")
|
||||
print("pid %s: send SIGINT or SIGTERM to exit." % os.getpid())
|
||||
try:
|
||||
loop.run_forever()
|
||||
|
|
|
@ -539,7 +539,7 @@ received data and close the connection::
|
|||
coro = loop.create_server(EchoServerClientProtocol, '127.0.0.1', 8888)
|
||||
server = loop.run_until_complete(coro)
|
||||
|
||||
# Serve requests until CTRL+c is pressed
|
||||
# Serve requests until Ctrl+C is pressed
|
||||
print('Serving on {}'.format(server.sockets[0].getsockname()))
|
||||
try:
|
||||
loop.run_forever()
|
||||
|
|
|
@ -312,7 +312,7 @@ TCP echo server using the :func:`asyncio.start_server` function::
|
|||
coro = asyncio.start_server(handle_echo, '127.0.0.1', 8888, loop=loop)
|
||||
server = loop.run_until_complete(coro)
|
||||
|
||||
# Serve requests until CTRL+c is pressed
|
||||
# Serve requests until Ctrl+C is pressed
|
||||
print('Serving on {}'.format(server.sockets[0].getsockname()))
|
||||
try:
|
||||
loop.run_forever()
|
||||
|
|
|
@ -330,8 +330,8 @@ Go to file/line
|
|||
Editing and navigation
|
||||
----------------------
|
||||
|
||||
In this section, 'C' refers to the Control key on Windows and Unix and
|
||||
the Command key on Mac OSX.
|
||||
In this section, 'C' refers to the :kbd:`Control` key on Windows and Unix and
|
||||
the :kbd:`Command` key on Mac OSX.
|
||||
|
||||
* :kbd:`Backspace` deletes to the left; :kbd:`Del` deletes to the right
|
||||
|
||||
|
|
|
@ -1174,7 +1174,7 @@ object -- see :ref:`multiprocessing-managers`.
|
|||
|
||||
.. note::
|
||||
|
||||
If the SIGINT signal generated by Ctrl-C arrives while the main thread is
|
||||
If the SIGINT signal generated by :kbd:`Ctrl-C` arrives while the main thread is
|
||||
blocked by a call to :meth:`BoundedSemaphore.acquire`, :meth:`Lock.acquire`,
|
||||
:meth:`RLock.acquire`, :meth:`Semaphore.acquire`, :meth:`Condition.acquire`
|
||||
or :meth:`Condition.wait` then the call will be immediately interrupted and
|
||||
|
|
|
@ -156,8 +156,8 @@ access further features, you have to do this yourself:
|
|||
that matches one of these patterns. [1]_
|
||||
|
||||
By default, Pdb sets a handler for the SIGINT signal (which is sent when the
|
||||
user presses Ctrl-C on the console) when you give a ``continue`` command.
|
||||
This allows you to break into the debugger again by pressing Ctrl-C. If you
|
||||
user presses :kbd:`Ctrl-C` on the console) when you give a ``continue`` command.
|
||||
This allows you to break into the debugger again by pressing :kbd:`Ctrl-C`. If you
|
||||
want Pdb not to touch the SIGINT handler, set *nosigint* tot true.
|
||||
|
||||
Example call to enable tracing with *skip*::
|
||||
|
|
|
@ -95,7 +95,7 @@ The variables defined in the :mod:`signal` module are:
|
|||
|
||||
.. data:: CTRL_C_EVENT
|
||||
|
||||
The signal corresponding to the CTRL+C keystroke event. This signal can
|
||||
The signal corresponding to the :kbd:`Ctrl+C` keystroke event. This signal can
|
||||
only be used with :func:`os.kill`.
|
||||
|
||||
Availability: Windows.
|
||||
|
@ -105,7 +105,7 @@ The variables defined in the :mod:`signal` module are:
|
|||
|
||||
.. data:: CTRL_BREAK_EVENT
|
||||
|
||||
The signal corresponding to the CTRL+BREAK keystroke event. This signal can
|
||||
The signal corresponding to the :kbd:`Ctrl+Break` keystroke event. This signal can
|
||||
only be used with :func:`os.kill`.
|
||||
|
||||
Availability: Windows.
|
||||
|
|
|
@ -554,9 +554,9 @@ ttk.Notebook
|
|||
This will extend the bindings for the toplevel window containing the
|
||||
notebook as follows:
|
||||
|
||||
* Control-Tab: selects the tab following the currently selected one.
|
||||
* Shift-Control-Tab: selects the tab preceding the currently selected one.
|
||||
* Alt-K: where K is the mnemonic (underlined) character of any tab, will
|
||||
* :kbd:`Control-Tab`: selects the tab following the currently selected one.
|
||||
* :kbd:`Shift-Control-Tab`: selects the tab preceding the currently selected one.
|
||||
* :kbd:`Alt-K`: where *K* is the mnemonic (underlined) character of any tab, will
|
||||
select that tab.
|
||||
|
||||
Multiple notebooks in a single toplevel may be enabled for traversal,
|
||||
|
|
|
@ -204,8 +204,8 @@ Command-line options
|
|||
|
||||
.. cmdoption:: -c, --catch
|
||||
|
||||
Control-C during the test run waits for the current test to end and then
|
||||
reports all the results so far. A second control-C raises the normal
|
||||
:kbd:`Control-C` during the test run waits for the current test to end and then
|
||||
reports all the results so far. A second :kbd:`Control-C` raises the normal
|
||||
:exc:`KeyboardInterrupt` exception.
|
||||
|
||||
See `Signal Handling`_ for the functions that provide this functionality.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue