This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: A command history for the idle interactive shell
Type: enhancement Stage:
Components: IDLE Versions:
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: kbk Nosy List: kbk, sonderblade
Priority: normal Keywords:

Created on 2005-09-23 23:05 by sonderblade, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg26370 - (view) Author: Björn Lindqvist (sonderblade) Date: 2005-09-23 23:05
1. Start IDLE.
2. In the IDLE shell that pops up, write a line of
Python code and press enter.
3. Pretend you made a spelling mistake in step two. So
you press up and try to fix it but you can't because
the cursor is moved and the IDLE shell doesn't work at
all like the normal CPython shell. In fact, there is no
easy way at all to get back to the last line of input
for correcting spelling mistakes. 
I think there should be one. Maybe ALT+Up could do what
Up does in the CPython shell?
msg26371 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2005-10-06 15:19
Logged In: YES 
user_id=149084

IDLE is a full screen editor, unlike the CPython interactive
interpreter.  So arrow up/down are reserved for cursor
motion.

However, IDLE has a special facility to recall command
history.  See Help / IDLE Help - Tip Section - Python Shell
Window - Command History.  There are several ways to
recall the command history.

If you like you can rebind <history-previous> to
Alt-Up Arrow etc. using Options / Configure IDLE / Keys.
Default is Alt-p.
History
Date User Action Args
2022-04-11 14:56:13adminsetgithub: 42409
2005-09-23 23:05:17sonderbladecreate