Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(59)

Side by Side Diff: Doc/library/cmd.rst

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/ast.rst ('k') | Doc/library/collections.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`cmd` --- Support for line-oriented command interpreters 1 :mod:`cmd` --- Support for line-oriented command interpreters
2 ============================================================= 2 =============================================================
3 3
4 .. module:: cmd 4 .. module:: cmd
5 :synopsis: Build line-oriented command interpreters. 5 :synopsis: Build line-oriented command interpreters.
6 .. sectionauthor:: Eric S. Raymond <esr@snark.thyrsus.com> 6 .. sectionauthor:: Eric S. Raymond <esr@snark.thyrsus.com>
7 7
8 **Source code:** :source:`Lib/cmd.py` 8 **Source code:** :source:`Lib/cmd.py`
9 9
10 -------------- 10 --------------
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 A :class:`Cmd` instance has the following methods: 43 A :class:`Cmd` instance has the following methods:
44 44
45 45
46 .. method:: Cmd.cmdloop(intro=None) 46 .. method:: Cmd.cmdloop(intro=None)
47 47
48 Repeatedly issue a prompt, accept input, parse an initial prefix off the 48 Repeatedly issue a prompt, accept input, parse an initial prefix off the
49 received input, and dispatch to action methods, passing them the remainder of 49 received input, and dispatch to action methods, passing them the remainder of
50 the line as argument. 50 the line as argument.
51 51
52 The optional argument is a banner or intro string to be issued before the fir st 52 The optional argument is a banner or intro string to be issued before the fir st
53 prompt (this overrides the :attr:`intro` class attribute). 53 prompt (this overrides the :attr:`intro` class member).
54 54
55 If the :mod:`readline` module is loaded, input will automatically inherit 55 If the :mod:`readline` module is loaded, input will automatically inherit
56 :program:`bash`\ -like history-list editing (e.g. :kbd:`Control-P` scrolls ba ck 56 :program:`bash`\ -like history-list editing (e.g. :kbd:`Control-P` scrolls ba ck
57 to the last command, :kbd:`Control-N` forward to the next one, :kbd:`Control- F` 57 to the last command, :kbd:`Control-N` forward to the next one, :kbd:`Control- F`
58 moves the cursor to the right non-destructively, :kbd:`Control-B` moves the 58 moves the cursor to the right non-destructively, :kbd:`Control-B` moves the
59 cursor to the left non-destructively, etc.). 59 cursor to the left non-destructively, etc.).
60 60
61 An end-of-file on input is passed back as the string ``'EOF'``. 61 An end-of-file on input is passed back as the string ``'EOF'``.
62 62
63 An interpreter instance will recognize a command name ``foo`` if and only if it 63 An interpreter instance will recognize a command name ``foo`` if and only if it
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 (turtle) playback spiral.cmd 356 (turtle) playback spiral.cmd
357 Current position is 0 0 357 Current position is 0 0
358 358
359 Current heading is 0 359 Current heading is 0
360 360
361 Current heading is 180 361 Current heading is 180
362 362
363 (turtle) bye 363 (turtle) bye
364 Thank you for using Turtle 364 Thank you for using Turtle
365 365
OLDNEW
« no previous file with comments | « Doc/library/ast.rst ('k') | Doc/library/collections.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+