[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2020-08-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: #41075 is specifically about history navigation. I tried Shift/Control/Alt - Up/Down and none worked. Rebinding just Up/Down did (in Shell, with Editor unchanged). But not having up/down work to move between lines in the Shell multiline statement entry

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2020-06-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2017-06-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: kbk -> terry.reedy stage: needs patch -> patch review versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2016-02-13 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2015-09-18 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2015-05-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: The PyShell patch does two things that I want to consider separately, and carefully, along with other possible solutions to the perceived problems. 1. Go to end-of-file when entering a letter or number in a read-only text area. In msg110889 Tal says Note that

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2015-05-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: The changes I proposed would not have to be extensions, as they are basically non-conflicting alternate keybindings, though the tab effect would have to be conditional. I will experiment with using prefix-up/down in one of my installed pythons. --

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2015-05-12 Thread Sean Wolfe
Sean Wolfe added the comment: Windows 7 patch test successful: https://bugs.python.org/issue2704 * install python 2.7.8 fresh on W7 * check idle terminal functionality -- should not show terminal changes from 2704: - up arrows move cursor - typing out of focus has no effect - clicking above

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2015-05-12 Thread Sean Wolfe
Sean Wolfe added the comment: successfully tested on Linux in 2014 Hello folks, FYI I also installed this patch on Lubuntu linux in 2014 on a series of computers at a lab where I mentor. I don't have the documentation for those specific tests, but I did follow the outline above, and it was

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2015-01-06 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2704 ___ ___ Python-bugs-list

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2014-03-05 Thread Sean Wolfe
Sean Wolfe added the comment: I just tried this out on osx 10.9.0 and python 2.7.5 : * cursor persisting on the input line works * up/down history works This is much better! A big irritation gone for me and makes things much easier for beginners IMO -- one less thing to get surprised by.

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2014-03-05 Thread Sean Wolfe
Sean Wolfe added the comment: installation steps for me: * apply PyShell.py patch (I had to do some bits manually) * add Terminal.py to idlelib directory * add changes to config-extensions.def as detailed in Terminal.py comments This was in the osx 10.9 system python directories, so there was

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2014-02-04 Thread Tal Einat
Changes by Tal Einat talei...@gmail.com: -- nosy: -taleinat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2704 ___ ___ Python-bugs-list mailing

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-05-09 Thread Roger Serwy
Roger Serwy added the comment: Welcome Phil! Your patch looks good and applied cleanly to the default branch and behaves as you specified. Your submission mechanics are good! You might want to look into signing a contributor's agreement:

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-05-08 Thread Phil Webster
Phil Webster added the comment: After reading about beginners having difficulty with IDLE's terminal behavior, I wrote a (very) simple patch to disable left clicking in the text area. I realize that this doesn't solve the problem completely (and the fact that there is already a patch here),

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-04-29 Thread Sarah
Changes by Sarah sarahpythoni...@gmail.com: -- nosy: +Sarah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2704 ___ ___ Python-bugs-list mailing

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-03-23 Thread Roger Serwy
Roger Serwy added the comment: Thanks, Todd, for reviewing and testing the extension! The Terminal.py extension patch provided here is outdated. There have been some minor tweaks and bug fixes that can be found in the IdleX project which works under 2.x and 3.x with the same code. (For

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-03-23 Thread Todd Rovito
Todd Rovito added the comment: No problem Roger. I have attached a new patch for documentation updates to both the IDLE help.txt file and idle.rst for the Terminal extension. Would it be helpful if I did a diff on the idleX Terminal.py with your original patch? In addition to doing the

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-03-23 Thread Todd Rovito
Todd Rovito added the comment: Roger, I took Terminal.py and copied it into Lib/idlelib for the 3.4 branch. The extension started just fine but when I toggle it off under the options menu the arrow keys still go through history. Basically on my Mac I see no difference between the

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-03-23 Thread Todd Rovito
Todd Rovito added the comment: After looking at the code some more I realized that I didn't have my configuration file configured correctly. The toggle was not working because I left this out of my config-extensions.def file: [Terminal_cfgBindings] terminal-toggle= Now it is working great

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-03-22 Thread Todd Rovito
Changes by Todd Rovito rovit...@gmail.com: -- nosy: +Todd.Rovito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2704 ___ ___ Python-bugs-list

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-03-22 Thread Todd Rovito
Todd Rovito added the comment: Made minor modifications to Roger's Terminal.py to get the extension to work with Python 3.4. This is an excellent extension as a user can toggle it on/off from the Options menu. The up/down arrow keys now allow a user to scroll through history but the meta-n

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-03-22 Thread Todd Rovito
Todd Rovito added the comment: I tested the patch on Linux CentOS 6.x and it seems to work. Now if we could only get somebody to test on Windows? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2704

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-02-23 Thread Ramchandra Apte
Ramchandra Apte added the comment: +1000 -- nosy: +Ramchandra Apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2704 ___ ___ Python-bugs-list

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-02-22 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2704 ___

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2010-07-20 Thread Tal Einat
Tal Einat talei...@gmail.com added the comment: IDLE should be accessible and easy to use for beginners who have never used a command line. Therefore I don't think up/down should scroll through the history by default. Since IDLE looks like a text editor (even the shell window) it is more

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2010-07-20 Thread Tal Einat
Tal Einat talei...@gmail.com added the comment: Regarding passing on letter/number key-presses to the command line, I'm -0 on this. Note that not only letter/number keys should be passed on. I've often found myself wanting to type in the command line after looking at previous code, to see

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2010-07-19 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 2.7, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2704 ___

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2010-03-25 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Rather than change the core code of IDLE, I've attached an extension to achieve terminal-like behavior. It provides a toggle to enable/disable. However, this extension as-is only works on the 2.x series, although it can be modified slightly

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2010-03-16 Thread Cherniavsky Beni
Cherniavsky Beni c...@users.sf.net added the comment: History access by Up/Down is important because it makes IDLE history much more discoverable. Most users instinctively expect Up/Down to work; moving back through the text of the session is nice but they probably won't guess that you can

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2009-04-26 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Kurt: regarding line wrapping, can you report your browser and OS at http://psf.upfronthosting.co.za/roundup/meta/issue277 ? -- nosy: +ajaksu2, gpolo stage: - patch review ___ Python tracker

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2009-04-03 Thread Kurt B. Kaiser
Kurt B. Kaiser k...@shore.net added the comment: As far as typing in the comment widget goes - it works fine if you don't add CR at the end of the lines until you go back and edit it by inserting some text. Then the faulty wordwrapping kicks in, and it has to be fixed by removing all

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2009-04-02 Thread Kurt B. Kaiser
Kurt B. Kaiser k...@shore.net added the comment: The issue of the cursor moving to the left of in the shell is separate. See also #3851. The current action of the home key, released in 2.6, is from patch 1196903. @tjreedy, if in 2.6 you type syzygy and hit home, the cursor moves to the

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2009-04-02 Thread Kurt B. Kaiser
Kurt B. Kaiser k...@shore.net added the comment: Why doesn't someone fix this comment widget?? It was like this on SF, too. Guess I've got to dive in at some point...second guessing the wrapping drives me nuts! -- ___ Python tracker

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2009-04-02 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Kurt, do not type hard returns except at the end of code lines and paragraphs. As I said in my previous comment, the HOME key works as I said both in 2.5 AND in 3.0 (and still in 3.0.1). If it was fixed in 2.6, fine, but that fix was either

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2009-03-11 Thread Brad Miller
Brad Miller bonel...@gmail.com added the comment: I hand applied the patch because I hoped it would fix the problem of the cursor going all the way to the left of the in the Python shell when you press home or ctrl-a. The patch as it is does not solve this problem on the Mac. I've uploaded

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-08-08 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: On windows: type zomeinput Press home key. In command window (terminal interface), cursor goes to just before z, where one would want. In IDLE (2.5.2, 3.0b2), it goes to beginning of line. If current patch does not fix this (there is no

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-06-16 Thread Roger Serwy
Roger Serwy [EMAIL PROTECTED] added the comment: I rewrote the patch to better handle multi-line input. In rewriting the patch I realized that there can be many different ways to handle up/down key presses while the cursor is in the input region. Here is the behavior of this patch: For single

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-06-04 Thread Cherniavsky Beni
Cherniavsky Beni [EMAIL PROTECTED] added the comment: The patch logic is very simple: inside the command area Up/Down move through history. But what about multi-line editing? Wouldn't this interfere when you just want to move between lines in a multi-line command (e.g. a long ``def``)? I'm

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-05-22 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser [EMAIL PROTECTED]: -- keywords: +patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2704 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-05-04 Thread Kurt B. Kaiser
Kurt B. Kaiser [EMAIL PROTECTED] added the comment: Thanks for the patch, I'll look at it. In the future, please send unified diffs (-u), not plain diffs. -- assignee: - kbk nosy: +kbk versions: +Python 2.6 -Python 2.5 __ Tracker [EMAIL PROTECTED]

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-05-03 Thread Roger Serwy
Roger Serwy [EMAIL PROTECTED] added the comment: 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

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-05-02 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] 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

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-04-27 Thread Roger Serwy
New submission from Roger Serwy [EMAIL PROTECTED]: 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