jroimartin / gocui

Minimalist Go package aimed at creating Console User Interfaces.
BSD 3-Clause "New" or "Revised" License
9.85k stars 610 forks source link

Text Input box with password masking #136

Open pjebs opened 6 years ago

pjebs commented 6 years ago

How can I mask passwords? Thank you for the library.

cyc115 commented 6 years ago

I think that should be done in your application logic.

afroewis commented 6 years ago

Considering v is a gocui.View:

v.Mask ^= '*'

This will mask this view's input with asterisks.