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
68d6dc07
Commit
68d6dc07
authored
Oct 28, 2018
by
Terry Jan Reedy
Committed by
GitHub
Oct 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-1529353: Explain Shell text squeezing in the IDLE doc. (#10169)
parent
c8a8d6b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
3 deletions
+39
-3
Doc/library/idle.rst
Doc/library/idle.rst
+20
-1
Lib/idlelib/help.html
Lib/idlelib/help.html
+19
-2
No files found.
Doc/library/idle.rst
View file @
68d6dc07
...
...
@@ -341,11 +341,18 @@ Set Breakpoint
Clear Breakpoint
Clear the breakpoint on that line.
Shell and Output windows have the following.
Shell and Output windows
also
have the following.
Go to file/line
Same as in Debug menu.
The Shell window also has an output squeezing facility explained in the
the *Python Shell window* subsection below.
Squeeze
If the cursor is over an output line, squeeze all the output between
the code above and the prompt below down to a 'Squeezed text' label.
Editing and navigation
----------------------
...
...
@@ -477,6 +484,9 @@ or immediately run an existing file before editing.
Python Shell window
^^^^^^^^^^^^^^^^^^^
The editing features described above work when entering code interactively.
IDLE's Shell window also responds to the following keys.
* :kbd:`C-c` interrupts executing command
* :kbd:`C-d` sends end-of-file; closes window if typed at a ``>>>`` prompt
...
...
@@ -492,6 +502,15 @@ Python Shell window
* :kbd:`Return` while on any previous command retrieves that command
Shell has a special facility for squeezing output lines down to a
'Squeezed text' label. This is done automatically for output over N lines
(N = 50 by default). N can be changed in the PyShell section of the General
page of the Settings dialog. Output with fewer lines can be squeezed by
right clicking on the output. This can be useful for extra long lines.
Squeezed output is expanded in place by double-clicking the label.
It can also be sent to the clipboard or a separate view window by
right-clicking the label.
Text colors
^^^^^^^^^^^
...
...
Lib/idlelib/help.html
View file @
68d6dc07
...
...
@@ -364,11 +364,18 @@ debugger. Breakpoints for a file are saved in the user’s .idlerc directory.</
<dt>
Clear Breakpoint
</dt>
<dd>
Clear the breakpoint on that line.
</dd>
</dl>
<p>
Shell and Output windows have the following.
</p>
<p>
Shell and Output windows
also
have the following.
</p>
<dl
class=
"docutils"
>
<dt>
Go to file/line
</dt>
<dd>
Same as in Debug menu.
</dd>
</dl>
<p>
The Shell window also has an output squeezing facility explained in the
the
<em>
Python Shell window
</em>
subsection below.
</p>
<dl
class=
"docutils"
>
<dt>
Squeeze
</dt>
<dd>
If the cursor is over an output line, squeeze all the output between
the code above and the prompt below down to a ‘Squeezed text’ label.
</dd>
</dl>
</div>
</div>
<div
class=
"section"
id=
"editing-and-navigation"
>
...
...
@@ -478,6 +485,8 @@ or immediately run an existing file before editing.</p>
</div>
<div
class=
"section"
id=
"python-shell-window"
>
<h3>
Python Shell window
<a
class=
"headerlink"
href=
"#python-shell-window"
title=
"Permalink to this headline"
>
¶
</a></h3>
<p>
The editing features described above work when entering code interactively.
IDLE’s Shell window also responds to the following keys.
</p>
<ul>
<li><p
class=
"first"
><kbd
class=
"kbd docutils literal notranslate"
>
C-c
</kbd>
interrupts executing command
</p>
</li>
...
...
@@ -493,6 +502,14 @@ OS X use <kbd class="kbd docutils literal notranslate">C-p</kbd>.</li>
</ul>
</li>
</ul>
<p>
Shell has a special facility for squeezing output lines down to a
‘Squeezed text’ label. This is done automatically for output over N lines
(N = 50 by default). N can be changed in the PyShell section of the General
page of the Settings dialog. Output with fewer lines can be squeezed by
right clicking on the output. This can be useful for extra long lines.
</p>
<p>
Squeezed output is expanded in place by double-clicking the label.
It can also be sent to the clipboard or a separate view window by
right-clicking the label.
</p>
</div>
<div
class=
"section"
id=
"text-colors"
>
<h3>
Text colors
<a
class=
"headerlink"
href=
"#text-colors"
title=
"Permalink to this headline"
>
¶
</a></h3>
...
...
@@ -797,7 +814,7 @@ also used for testing.</p>
<br
/>
<br
/>
Last updated on Oct 2
7
, 2018.
Last updated on Oct 2
8
, 2018.
<a
href=
"https://docs.python.org/3/bugs.html"
>
Found a bug
</a>
?
<br
/>
...
...
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