Is there a keyboard shortcut to clear a line for the Python IDLE shell? I know Ctrl-K works if you are at the beginning of a line, but is there a shortcut to do it when you are at the end?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you set idle’s
Key SettoIDLE Classic Unix(Options -> Configure -> Use a Built-in Key Set -> IDLE Classic Unix) you’ll at least be able to get the same effect withC-a C-k. There doesn’t seem to be anything that resemblesC-uin Emacs, for example.You could look into
EditorWindow.pyandconfigHandler.pyif you’re willing to add the functionality yourself (though it seems thatC-kis a default binding in tk’s editor widget).