diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-06-23 14:42:43 (GMT) |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-06-23 14:42:43 (GMT) |
commit | ff00fdae23d05bd93e913c917b3138cc2aea8cc2 (patch) | |
tree | 6779690f74fdb2462113392910d242483fe0be35 | |
parent | ad1a18b78ef87957a716af47e4c4f125e85565d0 (diff) | |
download | cpython-ff00fdae23d05bd93e913c917b3138cc2aea8cc2.zip cpython-ff00fdae23d05bd93e913c917b3138cc2aea8cc2.tar.gz cpython-ff00fdae23d05bd93e913c917b3138cc2aea8cc2.tar.bz2 |
Correct erroneous description of precmd.
-rw-r--r-- | Doc/lib/libcmd.tex | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/lib/libcmd.tex b/Doc/lib/libcmd.tex index e38fc24..54d924f 100644 --- a/Doc/lib/libcmd.tex +++ b/Doc/lib/libcmd.tex @@ -73,7 +73,8 @@ error message and returns. \end{methoddesc} \begin{methoddesc}{precmd}{} -Hook method executed just before the input prompt is issued. This +Hook method executed just before the command line is interpreted, but +after the input prompt is generated and issued. This method is a stub in \class{Cmd}; it exists to be overridden by subclasses. \end{methoddesc} @@ -142,5 +143,8 @@ headers. If empty, no ruler line is drawn. It defaults to A flag, defaulting to true. If true, \method{cmdloop()} uses \function{raw_input()} to display a prompt and read the next command; if false, \function{sys.stdout.write()} and -\function{sys.stdin.readline()} are used. +\function{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 +and command-history keystrokes.) \end{memberdesc} |