Eclipse "Echo-free Input" Support [message #1404766] |
Tue, 05 August 2014 14:54 |
|
Hello,
I am using the PyDev plugin (3.6.0.210406232321), Windows 8.1 Professional 64-bit, and Eclipse 4.4 (Luna).
One part of my Python program is meant to receive a password using the "getpass" module. The code is simple, and as the user enters the password, it doesn't print out as it's being typed. Code is implemented as such:
import getpass
user = raw_input("Enter your username: ")
password = getpass.getpass("Enter your password: ")
The code works in Windows PowerShell/Command Prompt and the *nix Terminal, but not in IDLE or Eclipse. I'm assuming that it won't work in any IDE that isn't native to its operating system. This may not even be an Eclipse problem specifically, but I was just wondering if anyone had some insight for me?
Both IDLE and Eclipse don't seem to support terminal cursor movement as well, such as being able to display an installation progress bar that refreshes to the same terminal line. Are there patches planned for these issues in future releases?
Thanks in advance for your help.
-
Attachment: getpass.py
(Size: 5.43KB, Downloaded 335 times)
Regards,
G.P. Greenleaf
CSIT, CSU Monterey Bay
|
|
|
Powered by
FUDForum. Page generated in 0.09597 seconds