diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-09-12 14:47:12 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-09-12 14:47:12 (GMT) |
commit | 9b2e37f6882d85c2e7cb9ce24a02e9c60a237b25 (patch) | |
tree | 084f20a462d0e8579fbd92aacb238ab62271bb5a /Doc/tutorial | |
parent | b2528c92f139195e8a3c745833ad1cd0ff4bc0f2 (diff) | |
download | cpython-9b2e37f6882d85c2e7cb9ce24a02e9c60a237b25.zip cpython-9b2e37f6882d85c2e7cb9ce24a02e9c60a237b25.tar.gz cpython-9b2e37f6882d85c2e7cb9ce24a02e9c60a237b25.tar.bz2 |
Marked keystrokes with the :kbd: role.
Fixed the case of the "Ctrl-" prefixes.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/appendix.rst | 2 | ||||
-rw-r--r-- | Doc/tutorial/interpreter.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/appendix.rst b/Doc/tutorial/appendix.rst index befb96a..7ab588b 100644 --- a/Doc/tutorial/appendix.rst +++ b/Doc/tutorial/appendix.rst @@ -25,7 +25,7 @@ some cases of running out of memory. All error messages are written to the standard error stream; normal output from executed commands is written to standard output. -Typing the interrupt character (usually Control-C or DEL) to the primary or +Typing the interrupt character (usually :kbd:`Control-C` or :kbd:`Delete`) to the primary or secondary prompt cancels the input and returns to the primary prompt. [#]_ Typing an interrupt while a command is executing raises the :exc:`KeyboardInterrupt` exception, which may be handled by a :keyword:`try` diff --git a/Doc/tutorial/interpreter.rst b/Doc/tutorial/interpreter.rst index 67f927f..5f37504 100644 --- a/Doc/tutorial/interpreter.rst +++ b/Doc/tutorial/interpreter.rst @@ -37,7 +37,7 @@ The interpreter's line-editing features usually aren't very sophisticated. On Unix, whoever installed the interpreter may have enabled support for the GNU readline library, which adds more elaborate interactive editing and history features. Perhaps the quickest check to see whether command line editing is -supported is typing Control-P to the first Python prompt you get. If it beeps, +supported is typing :kbd:`Control-P` to the first Python prompt you get. If it beeps, you have command line editing; see Appendix :ref:`tut-interacting` for an introduction to the keys. If nothing appears to happen, or if ``^P`` is echoed, command line editing isn't available; you'll only be able to use backspace to |