Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding command line input

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Is it possible to apply a mask of "****.." or even to not display altogether, text entered on the command line of of a tcl program.I need to do this and still be able to read in the string.
This is for the user to enter a password but not have it appearing on screen.

Any ideas?
 
Mr. Sparkle,

You can use the -hide option of the entry widget like this:

entry .e -textvariable aaa -hide *

Any characters that are typed in .e are displayed as astrisks. The readable value is stored in the variable aaa.

Jeff.
 
Sorry, but the script isn't using tk, I'm trying to read from the command line. :-(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top