jroimartin / gocui

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

Adding masked input for view #44

Closed dtylman closed 8 years ago

dtylman commented 8 years ago

Setting a mask character for when editing a view.

v.Mask="*"

If set and view is Editable, displays the mask instead of the real content.

Added this to enable building views for forms that includes password retrieval.

jroimartin commented 8 years ago

LGTM :+1:

Merged in 65dfdbf77aa83b6ef34716f98216d425c4f30b4b. I also added an example at https://github.com/jroimartin/gocui/blob/master/_examples/mask.go.

Thanks! :)

jroimartin commented 8 years ago

BTW @dtylman sorry for the LATE response...