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
565e2703
Commit
565e2703
authored
Jul 12, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow the recommended practices for keystroke representation; this
improves internal consistency in the documentation.
parent
6ff6cb04
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
23 deletions
+25
-23
Doc/lib/libcmd.tex
Doc/lib/libcmd.tex
+4
-4
Doc/lib/libcurses.tex
Doc/lib/libcurses.tex
+20
-18
Doc/lib/libexcs.tex
Doc/lib/libexcs.tex
+1
-1
No files found.
Doc/lib/libcmd.tex
View file @
565e2703
...
...
@@ -33,10 +33,10 @@ 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
inherit
\program
{
bash
}
-like history-list editing (e.g.
\kbd
{
C
tr
l-P
}
scrolls back to the last command,
\kbd
{
C
tr
l-N
}
forward to the next
one,
\kbd
{
C
tr
l-F
}
moves the cursor to the right non-destructively,
\kbd
{
C
tr
l-B
}
moves the cursor to the left non-destructively, etc.).
inherit
\program
{
bash
}
-like history-list editing (e.g.
\kbd
{
C
ontro
l-P
}
scrolls back to the last command,
\kbd
{
C
ontro
l-N
}
forward to the next
one,
\kbd
{
C
ontro
l-F
}
moves the cursor to the right non-destructively,
\kbd
{
C
ontro
l-B
}
moves the cursor to the left non-destructively, etc.).
An end-of-file on input is passed back as the string
\code
{
'EOF'
}
.
...
...
Doc/lib/libcurses.tex
View file @
565e2703
...
...
@@ -1304,20 +1304,22 @@ Process a single command keystroke. Here are the supported special
keystrokes:
\begin{tableii}
{
l|l
}{
kbd
}{
Keystroke
}{
Action
}
\lineii
{
C
tr
l-A
}{
Go to left edge of window.
}
\lineii
{
C
tr
l-B
}{
Cursor left, wrapping to previous line if appropriate.
}
\lineii
{
C
tr
l-D
}{
Delete character under cursor.
}
\lineii
{
C
tr
l-E
}{
Go to right edge (stripspaces off) or end of line
\lineii
{
C
ontro
l-A
}{
Go to left edge of window.
}
\lineii
{
C
ontro
l-B
}{
Cursor left, wrapping to previous line if appropriate.
}
\lineii
{
C
ontro
l-D
}{
Delete character under cursor.
}
\lineii
{
C
ontro
l-E
}{
Go to right edge (stripspaces off) or end of line
(stripspaces on).
}
\lineii
{
Ctrl-F
}{
Cursor right, wrapping to next line when appropriate.
}
\lineii
{
Ctrl-G
}{
Terminate, returning the window contents.
}
\lineii
{
Ctrl-H
}{
Delete character backward.
}
\lineii
{
Ctrl-J
}{
Terminate if the window is 1 line, otherwise insert newline.
}
\lineii
{
Ctrl-K
}{
If line is blank, delete it, otherwise clear to end of line.
}
\lineii
{
Ctrl-L
}{
Refresh screen.
}
\lineii
{
Ctrl-N
}{
Cursor down; move down one line.
}
\lineii
{
Ctrl-O
}{
Insert a blank line at cursor location.
}
\lineii
{
Ctrl-P
}{
Cursor up; move up one line.
}
\lineii
{
Control-F
}{
Cursor right, wrapping to next line when appropriate.
}
\lineii
{
Control-G
}{
Terminate, returning the window contents.
}
\lineii
{
Control-H
}{
Delete character backward.
}
\lineii
{
Control-J
}{
Terminate if the window is 1 line, otherwise
insert newline.
}
\lineii
{
Control-K
}{
If line is blank, delete it, otherwise clear to
end of line.
}
\lineii
{
Control-L
}{
Refresh screen.
}
\lineii
{
Control-N
}{
Cursor down; move down one line.
}
\lineii
{
Control-O
}{
Insert a blank line at cursor location.
}
\lineii
{
Control-P
}{
Cursor up; move up one line.
}
\end{tableii}
Move operations do nothing if the cursor is at an edge where the
...
...
@@ -1325,11 +1327,11 @@ movement is not possible. The following synonyms are supported where
possible:
\begin{tableii}
{
l|l
}{
constant
}{
Constant
}{
Keystroke
}
\lineii
{
KEY
_
LEFT
}{
\kbd
{
C
tr
l-B
}}
\lineii
{
KEY
_
RIGHT
}{
\kbd
{
C
tr
l-F
}}
\lineii
{
KEY
_
UP
}{
\kbd
{
C
tr
l-P
}}
\lineii
{
KEY
_
DOWN
}{
\kbd
{
C
tr
l-N
}}
\lineii
{
KEY
_
BACKSPACE
}{
\kbd
{
C
tr
l-h
}}
\lineii
{
KEY
_
LEFT
}{
\kbd
{
C
ontro
l-B
}}
\lineii
{
KEY
_
RIGHT
}{
\kbd
{
C
ontro
l-F
}}
\lineii
{
KEY
_
UP
}{
\kbd
{
C
ontro
l-P
}}
\lineii
{
KEY
_
DOWN
}{
\kbd
{
C
ontro
l-N
}}
\lineii
{
KEY
_
BACKSPACE
}{
\kbd
{
C
ontro
l-h
}}
\end{tableii}
All other keystrokes are treated as a command to insert the given
...
...
Doc/lib/libexcs.tex
View file @
565e2703
...
...
@@ -177,7 +177,7 @@ Raised when an \keyword{assert} statement fails.
\begin{excdesc}
{
KeyboardInterrupt
}
Raised when the user hits the interrupt key (normally
\kbd
{
Control-C
}
or
\kbd
{
D
EL
}
). During execution, a check for
\kbd
{
Control-C
}
or
\kbd
{
D
elete
}
). During execution, a check for
interrupts is made regularly.
% XXXJH xrefs here
Interrupts typed when a built-in function
\function
{
input()
}
or
...
...
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