Skip to content

feat: add censorChar option when using censored text#29

Open
tannerellen wants to merge 1 commit into
kenan238:masterfrom
tannerellen:censor-customize-character
Open

feat: add censorChar option when using censored text#29
tannerellen wants to merge 1 commit into
kenan238:masterfrom
tannerellen:censor-customize-character

Conversation

@tannerellen
Copy link
Copy Markdown

This adds the ability to specify the character used for the censor option called censorChar. An example would be...

   const input = blessed.textbox({
    inputOnFocus: true,
    censor: true,
    censorChar: "•",
  });

I chose to go with another option rather than have the censor property play double duty as it makes the data types clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant