Password fields are created by turning the NOECHO option ON for a field. When the user enters a valid character for the field, it will not be displayed in the field. Instead, the no-echo character is displayed for the entered keystroke. By default, this character is a null terminator '\0', which is not visible.
You can change the character that is displayed in NOECHO fields with the set environment no-echo character function, se_noechoch():
|
If you use se_noechoch() to specify a character that is not printable, the cursor is not displayed in the field and nothing shows up in the field when the user types in it. If you specify a printable character, the field is filled with that character when the form is displayed, so that no one can tell how many characters were entered into the field. If the user presses the Backspace or Delete key, the appropriate character is deleted.