redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

the interactive prompt just beeps and types nothing


Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    Web Design Forums -> Python programming forum
View previous topic :: View next topic  
Author Message
Ikopar



Joined: 26 May 2006
Posts: 168
You prefer the DOS-box over IDLE? Why?
  Reply with quote


Koplaf



Joined: 28 May 2006
Posts: 130
{ and [ are obvious sending control signals/characters to the prompt. I have no idea why, but googling "square bracket dos control signal" or similar might tell you.
  Reply with quote
Ikopar



Joined: 26 May 2006
Posts: 168
Kopilman, http://www.microsoft.com/globaldev/tools/msklc.mspx ?
  Reply with quote
Kopilman



Joined: 25 May 2006
Posts: 162
My keyboard / regular "cmd" prompts / cygwin work just fine... it's *only* when I run interactive python...
  Reply with quote
Ikopar



Joined: 26 May 2006
Posts: 168
Kopilman, Also, what do you get by running this:
Python -Ec "import sys; print sys.stdin.encoding" & mode con cp
  Reply with quote
Kopilman



Joined: 25 May 2006
Posts: 162
Ikopar, this works, output in pastebin => python -Ec "import sys; print sys.stdin.encoding" & mode con cp
this "works" but doesn't display anything, si... => import msvcrt; print msvcrt.getch()
  Reply with quote
Ikopar



Joined: 26 May 2006
Posts: 168
At the prompt, type ‘command’; at the new prompt, type ‘python -’
But getch() works for the other keys, yes?
  Reply with quote
Kopilman



Joined: 25 May 2006
Posts: 162
look at this:
>>> msvcrt.getch()
'['
>>>
Hadn't understood what you were telling me, sorry
So, getch() works just fine for the characters that give me trouble otherwise
  Reply with quote
Ikopar



Joined: 26 May 2006
Posts: 168
Try: ‘python con’
  Reply with quote
Kopilman



Joined: 25 May 2006
Posts: 162
That works
I.e. [ works
This kinda helps me, but I'd love to know wtf is going wrong :-)
  Reply with quote
Page 2 of 3 Goto page Previous  1, 2, 3  Next
Post new topic   Reply to topic    Web Design Forums -> Python programming forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group