net/
mg_getpassword.pro
includes main-level programRoutines
top 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
IDL> password = mg_getpassword(prompt='Password:')
Password: *******************
IDL> print, password, format='(%"Password = \"%s\"")'
Password = "this is my password"
File attributes
Modification date: | Wed May 14 15:07:14 2014 |
Lines: | 18 |
Docformat: | rst rst |
Contact me if you have enhancement requests or bug fixes.