Re: The '>>> ' prompt is bad
Roger Serwy <roger.serwy <at> gmail.com>
2012-06-21 23:22:34 GMT
On 06/21/2012 04:10 PM, Terry Reedy wrote:
> On 6/21/2012 1:08 PM, Roger Serwy wrote:
>
>> Does allowing the cursor to leave the prompt considered a benefit or a
>> detriment for teaching beginners? The last system I remember using that
>> allowed for the cursor to leave the prompt was a line-number BASIC from
>> the 1980's. I haven't used any interactive systems since then that
>> allowed the cursor to leave the prompt.
>
> Moving the cursor (with keys or mouse) is one way to rerun a previous
> line. It is also the way to select previous input or output. Windows
> Command Prompt (CP) gets around freezing the cursor to one line by
> having a *separate* mouse-only select cursor (box when click, versus
> underline for entry). That means that one can only correct mistakes
> *on the same line* with backspace (destructive) or home/left arrow. As
> near as I can tell, it is impossible to edit a previous line of a
> multiline statement. Ugh. There is a reason I use Idle as my shell.
I'm not suggesting an implementation of Window's CP behavior, as I find
it too limited as well. On Linux, up/down arrows at the command prompt
cycle through the command history. Many other interactive programs
behave the same way, like Octave, Matlab, R, Python, etc. For some
reason, IDLE has this very different behavior for its prompt. I opened
this report a long time ago, which has some discussion along these
lines: http://bugs.python.org/issue2704
IdleX has the Terminal.py extension included which makes IDLE behave how
I think it should behave.
> Also note that click on previous *statement* and hit enter copies the
> entire statement (rather than just one line of a multiline statement)
(Continue reading)