idllib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

net/

mg_getpassword.pro

includes main-level program

top source mg_getpassword

result = mg_getpassword( [prompt=string])

Get a password from the command line. Shows asterisks instead of the actual password.

Return value

string

Keywords

prompt in optional type=string

prompt to display before the password is typed

Examples

Try the main-level example program at the end of this file:

IDL> .run mg_getpassword
This does the following:
IDL> password = mg_getpassword(prompt='Password:') Password: ******************* IDL> print, password, format='(%"Password = \"%s\"")' Password = "this is my password"

File attributes

Modification date: Wed Jul 6 14:06:14 2011
Lines: 52
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.