MCPcopy Index your code
hub / github.com/mathaou/termdbms / echoTransform

Method echoTransform

tuiutil/textinput.go:551–561  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

549}
550
551func (m TextInputModel) echoTransform(v string) string {
552 switch m.EchoMode {
553 case EchoPassword:
554 return strings.Repeat(string(m.EchoCharacter), rw.StringWidth(v))
555 case EchoNone:
556 return ""
557
558 default:
559 return v
560 }
561}
562
563// Update is the Bubble Tea update loop.
564func (m TextInputModel) Update(msg tea.Msg) (TextInputModel, tea.Cmd) {

Callers 1

ViewMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected