473,378 Members | 1,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

how to cut and paste in the windows of python(command line)

Dear all:

The mouse cannot be responded in the windows of python(command
line) and cut and paste cannot be done. ctrl c and ctrl v do not work.
But they do work in IDLE.
please teach me about the python(command line).
Jul 24 '08 #1
4 15050
On Jul 24, 8:17*am, fang <t...@sina.comwrote:
Dear all:

* * * The mouse cannot be responded in the windows of python(command
line) and cut and paste cannot be done. ctrl c and ctrl v do not work.
But they do work in IDLE.
* * * please teach me about the python(command line).
What Operating System are you using? If you are using Windows, you
could try cutting and pasting from the menu (I am assuming you are
using a normal terminal windows).

André
Jul 24 '08 #2
fang wrote:
The mouse cannot be responded in the windows of python(command
line) and cut and paste cannot be done. ctrl c and ctrl v do not work.
But they do work in IDLE.
that has absolutely nothing to do with Python, and everything to do with
what console or terminal program you're using.

if you're using windows, you'll find edit commands, including copy and
paste, commands in the window menu (click on the icon in the upper left
corner). Python also supports the standard "doskey" commands (text+F8
to search in history, UP/DOWN to recall commands, ESC to clear, etc).

if you want better console support, consider installing the "ipython"
shell:

http://ipython.scipy.org/moin/

</F>

Jul 24 '08 #3
-On [20080724 13:50], Fredrik Lundh (fr*****@pythonware.com) wrote:
>if you want better console support, consider installing the "ipython"
shell:
Unless you work with non-ASCII. Ipython mangles non-ASCII unfortunately.

[Full UTF-8 environment]

In [1]: a = u'æ„›'
In [2]: a
Out[2]: u'\xe6\x84\x9b'

Normal python shell:
>>a = u'æ„›'
a
u'\u611b'

I wonder if it can be easily fixed with a getpreferredencoding() or by using
an .encode(sys.stdout.encoding or getpreferredencoding() or 'ascii',
'replace') triplet.

--
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org/ asmodai
イェルーン ラウフãƒ*ック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
One who knows that enough is enough will always have enough...
Jul 24 '08 #4
Dear:

Thank you very much! I can do it! It's very nice!
Jul 24 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: farshad | last post by:
Hello, Could someone tell me which way can we use windows command(for example Create New Folder) in visual c++ programing or use dos command without using dos prompt. best regards farshad
2
by: Allen | last post by:
In regex, ^ and $ shoudl match start/end of a line when the 'm' /multiline modifier is set -- however I just spent the better part of the day trying to figure out why it wasn't working as expected....
7
by: John F | last post by:
Not exactly a C question (sorry), but I couldn't find a ng that seems more suitable... On the Unix shell command line I can successfully write cc -DPATH=\"abcd/\" program.c -o program to...
1
by: Andrew McCall | last post by:
Hi Folks, I am building an application under multiple OS's, and I wanted to give my application For example, the test application I am working on is a calculator and I would like to have a...
2
by: jake_allen_no_spam | last post by:
Hi All How do you run an external windows command in Microsoft Access. I have a VBA script and I want to start internet explorer from within Access. Is there a run host command to start a...
1
by: yadin | last post by:
hi! i need to know how i can run ussal commands that i ussally type at the windows command prompt from a python file. that is for example from the windows command prompt i ussually type "cd...
1
by: pramodkh | last post by:
Dear All, I am writting a PERL script in windows to test some test cases. The test result is captured both in command prompt and in the log file. But when the result is displayed on a windows...
4
by: Rahul | last post by:
My python command line seems messed up. I can't seem to be able to use my backspace key nor my arrow keys. I only get control characters: ^[[A^[[D^[[D^[[D^[[C^[[C^[[C etc. I access my Linux...
1
by: TP | last post by:
Hi everybody, I try to find a quick way to redirect the standard output of a Python command (for example: print "message") to a python variable "foobar". Ok, in this simple example, I could do...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.