classification
Title: IDLE: Patch to make PyShell behave more like a Terminal interface
Type: behavior
Components: IDLE Versions: Python 2.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: kbk Nosy List: kbk, serwy, tjreedy
Priority: Keywords:

Created on 2008-04-27 18:02 by serwy, last changed 2008-05-04 22:22 by kbk.

Files
File name Uploaded Description Edit Remove
patch_PyShell.py serwy, 2008-04-27 18:02 improved PyShell.py code patch
Messages
msg65888 (view) Author: Roger Serwy (serwy) Date: 2008-04-27 18:02
See attached diff file. Patching PyShell.py Version 1.2.1

PyShell ignores letter/number key presses when the cursor is not on the
command line. Instead it should redirect any letter/number key presses
to the command line. (Changed ModifiedUndoDelegator)

Also, up/down arrow presses should scroll through history when the
cursor is on the command line. But when the cursor is not on the command
line, the arrow keys should move around the PyShell window. (Added new
bindings with conditional logic)
msg66119 (view) Author: Terry J. Reedy (tjreedy) Date: 2008-05-02 21:58
I like the two changes: jump to command line and scroll previous command
lines without having to search back up through the output.  Just don't
imitate the Windows terminal too closely with its inability to just
select previous output (without Symbol/Edit/Mark).
msg66171 (view) Author: Roger Serwy (serwy) Date: 2008-05-03 20:32
Hi Terry,

The patch allows you to select previous output if your cursor leaves the 
command line area. Press the left arrow button at a new command line 
does this.

Thank you for your feedback!

- RDS

Terry J. Reedy wrote:
> Terry J. Reedy <tjreedy@udel.edu> added the comment:
>
> I like the two changes: jump to command line and scroll previous command
> lines without having to search back up through the output.  Just don't
> imitate the Windows terminal too closely with its inability to just
> select previous output (without Symbol/Edit/Mark).
>
> ----------
> nosy: +tjreedy
>
> __________________________________
> Tracker <report@bugs.python.org>
> <http://bugs.python.org/issue2704>;
> __________________________________
>
>
msg66249 (view) Author: Kurt B. Kaiser (kbk) Date: 2008-05-04 22:22
Thanks for the patch, I'll look at it.

In the future, please send unified diffs (-u), not plain diffs.
History
Date User Action Args
2008-05-04 22:22:19kbksetassignee: kbk
messages: + msg66249
nosy: + kbk
versions: + Python 2.6, - Python 2.5
2008-05-03 20:32:57serwysetmessages: + msg66171
2008-05-02 21:58:46tjreedysetnosy: + tjreedy
messages: + msg66119
2008-04-27 18:02:39serwycreate