7

Also, are there any functions I can use keyboard to control in order to create a program more efficiently?

Thanks

zEro
  • 1,255
  • 14
  • 24
hkus10
  • 463
  • 3
  • 7
  • 9
  • How to copy and paste info by using keyboard in Python – hkus10 Feb 20 '11 at 15:40
  • 3
    Are you saying that ctrl-c in the interactive mode should be doing anything differently than what it does? Your question is extremely difficult to understand. – Tim Post Feb 20 '11 at 16:37
  • @hkus10: Try to explain what your problem is, instead of asking us how to do something that you think you need to do, but you don't. Include the following information: 1. What are you trying to do. 2 Why are you trying to do it. 3. What do you expect to happen. 4. What happens. – Lennart Regebro Feb 20 '11 at 16:42
  • @Tom Willis: Please normalize. /facepalm*10^6 :) – Tim Pietzcker Feb 20 '11 at 17:06
  • 2
    No this post makes a lot of sense interactive interpreter does not behaves the same way as Windows DOS behaves all newbies who type 2-3 lines of code blocks on terminal when face errors would like to type the same programm again on terminal and retype to save it we need to do a Ctrl+V but Ctrl+V pastes the white spaces and three dots ... which are after each line break and hence the program execution gives a lot of error this is what OP I think is trying to ask – Registered User Apr 23 '13 at 04:52

1 Answers1

38

Do you mean that you want to copy/paste source code/text in the Python command line?

If you're on Windows, it works just like any DOS console. I recommend you open your Python console, click on the left upper icon and select "Properties". Then, on the options tab, check the "Insert mode" and "Quick Edit mode" checkboxes.

Now you can copy text by highlighting it with your mouse and pressing Enter, and paste text by right-clicking inside the window.

Tim Pietzcker
  • 328,213
  • 58
  • 503
  • 561