Regardless the operating system, we noticed that liner library reveals hidden values when the screen gets too narrow for both the label and input space of a hidden variable.
The method
func (s *State) tooNarrow(prompt string) (string, error)
calls func (s *State) promptUnsupported(p string) (string, error)
which then calls
linebuf, _, err := s.r.ReadLine() !!!
When this happens a hidden value is not hidden anymore.
Regardless the operating system, we noticed that liner library reveals hidden values when the screen gets too narrow for both the label and input space of a hidden variable.
The method func (s *State) tooNarrow(prompt string) (string, error)
calls func (s *State) promptUnsupported(p string) (string, error) which then calls linebuf, _, err := s.r.ReadLine() !!! When this happens a hidden value is not hidden anymore.