How do I access the command history from IDLE?

为君一笑 提交于 2019-12-02 14:46:30
shylent

I think you are looking for the history-previous action, which is bound to alt+p by default.

You can remap it in Options->Configure IDLE->Keys

Incidentally, why don't you try a better (less ugly, for starters) shell like bpython or ipython?

just use Alt+P to go up. Similarly, Alt+N could be used to go down.

Austin Cory Bart

If you're on mac, it's ctrl+p.

Go into Preferences > Keys. Find the 'history-previous' selection in the list and edit it to Up Arrow.

You can always edit the file config-keys.cfg found under ~/.idlerc by default; look for the entry "history-previous" and set it to as below...

history-previous = <Key-Up>

Done.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!