diff options
author | Fred Drake <fdrake@acm.org> | 2003-12-31 05:01:23 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-12-31 05:01:23 (GMT) |
commit | 7f8d17a50c8a700ca6116169d5a3b7c0a6de03d2 (patch) | |
tree | 055762f4d7b607f78f142412e645453bdc23569c /Doc | |
parent | 188b2d6cfac7f26bea3eeffc13206ed865c0c5dc (diff) | |
download | cpython-7f8d17a50c8a700ca6116169d5a3b7c0a6de03d2.zip cpython-7f8d17a50c8a700ca6116169d5a3b7c0a6de03d2.tar.gz cpython-7f8d17a50c8a700ca6116169d5a3b7c0a6de03d2.tar.bz2 |
general markup improvements
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libcmd.tex | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/lib/libcmd.tex b/Doc/lib/libcmd.tex index 4b7a23d..7260b85 100644 --- a/Doc/lib/libcmd.tex +++ b/Doc/lib/libcmd.tex @@ -11,7 +11,8 @@ line-oriented command interpreters. These are often useful for test harnesses, administrative tools, and prototypes that will later be wrapped in a more sophisticated interface. -\begin{classdesc}{Cmd}{\optional{completekey},\optional{stdin},\optional{stdout}} +\begin{classdesc}{Cmd}{\optional{completekey\optional{, + stdin\optional{, stdout}}}} A \class{Cmd} instance or subclass instance is a line-oriented interpreter framework. There is no good reason to instantiate \class{Cmd} itself; rather, it's useful as a superclass of an @@ -20,7 +21,7 @@ interpreter class you define yourself in order to inherit The optional argument \var{completekey} is the \refmodule{readline} name of a completion key; it defaults to \kbd{Tab}. If \var{completekey} is -not \code{None} and \module{readline} is available, command completion +not \constant{None} and \refmodule{readline} is available, command completion is done automatically. The optional arguments \var{stdin} and \var{stdout} specify the @@ -44,7 +45,7 @@ remainder of the line as argument. The optional argument is a banner or intro string to be issued before the first prompt (this overrides the \member{intro} class member). -If the \module{readline} module is loaded, input will automatically +If the \refmodule{readline} module is loaded, input will automatically inherit \program{bash}-like history-list editing (e.g. \kbd{Control-P} scrolls back to the last command, \kbd{Control-N} forward to the next one, \kbd{Control-F} moves the cursor to the right non-destructively, @@ -184,7 +185,7 @@ A flag, defaulting to true. If true, \method{cmdloop()} uses \function{raw_input()} to display a prompt and read the next command; if false, \method{sys.stdout.write()} and \method{sys.stdin.readline()} are used. (This means that by -importing \module{readline}, on systems that support it, the -interpreter will automatically support Emacs-like line editing +importing \refmodule{readline}, on systems that support it, the +interpreter will automatically support \program{Emacs}-like line editing and command-history keystrokes.) \end{memberdesc} |