Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ff00fdae
Commit
ff00fdae
authored
Jun 23, 2001
by
Eric S. Raymond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct erroneous description of precmd.
parent
ad1a18b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Doc/lib/libcmd.tex
Doc/lib/libcmd.tex
+6
-2
No files found.
Doc/lib/libcmd.tex
View file @
ff00fdae
...
...
@@ -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}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment