Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff00fda

Browse files
Correct erroneous description of precmd.
1 parent ad1a18b commit ff00fda

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Doc/lib/libcmd.tex

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ \subsection{Cmd Objects}
7373
\end{methoddesc}
7474

7575
\begin{methoddesc}{precmd}{}
76-
Hook method executed just before the input prompt is issued. This
76+
Hook method executed just before the command line is interpreted, but
77+
after the input prompt is generated and issued. This
7778
method is a stub in \class{Cmd}; it exists to be overridden by
7879
subclasses.
7980
\end{methoddesc}
@@ -142,5 +143,8 @@ \subsection{Cmd Objects}
142143
A flag, defaulting to true. If true, \method{cmdloop()} uses
143144
\function{raw_input()} to display a prompt and read the next command;
144145
if false, \function{sys.stdout.write()} and
145-
\function{sys.stdin.readline()} are used.
146+
\function{sys.stdin.readline()} are used. (This means that by
147+
importing \module{readline}, on systems that support it, the
148+
interpreter will automatically support Emacs-like line editing
149+
and command-history keystrokes.)
146150
\end{memberdesc}

0 commit comments

Comments
 (0)