Computer Science Canada password |
Author: | droe [ Fri Mar 27, 2009 9:47 am ] |
Post subject: | password |
you know when you type in a password for something and the password is shown as asteriks or something? how do you do that in turing? |
Author: | DemonWasp [ Fri Mar 27, 2009 10:18 am ] | ||
Post subject: | RE:password | ||
If you're using the GUI module, you can use GUI.SetEchoChar If you're trying to do this with get, you can't. There's simply no way to tell it to do so; if you wanted, you could use this though:
Basically, that tells Turing not to print your input to the screen ("noecho") then does the input-getting manually (adding to the "password" string, or removing characters if you hit backspace). No guarantees it's perfect, though. |