#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2009
    Posts
    113
    Rep Power
    6

    Remember previous command in IDLE?


    Hi, I am a new user of Python. In IDEL, how to remember the previous command? The arrow button UP and Down doesn't work.

    Thanks.
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,854
    Rep Power
    481
    Can you connect IDLE to gnureadline?
    I don't use IDLE.
    Maybe there is an emacs compatibility mode for IDLE. You could use C-p (previous line) and C-n (next line) instead of the dumb arrow buttons that demand you move your hand from the home row keys. The mouse is worse.
    I run software in an emacs shell buffer. This gives me the full editing facility of emacs, and I don't have to move my hands.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2007
    Location
    Joensuu, Finland
    Posts
    436
    Rep Power
    67
    IDLE is a full-screen editor, not a line-based one. Basically this means there’s not an easy way to repeat a previous line other than going back to it (with the Up key or using the mouse) and pressing Enter – this copies the whole line – or going back, selecting some text, and pressing enter – this copies only the selected text.

    I checked the keyboard shortcuts that could be bound as well: looks like a “repeat last” function simply doesn’t exist.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2014
    Posts
    1
    Rep Power
    0

    C-p, worked ! Thanks you !


    C-p works ! Thank you !

IMN logo majestic logo threadwatch logo seochat tools logo