LTK: removing character echo in Entry widget

132 views Asked by At

Is there anyway to have remove echoing of characters being typed in the Entry widget of LTK?

For the CLI interface I use the c-string function (alien routine)

(sb-alien:define-alien-routine getpass sb-alien:c-string (prompt sb-alien:c-string))

Not quite sure how to apply this in LTK.

1

There are 1 answers

0
Anton Kovalenko On BEST ANSWER

Set the -show (:show) option of the entry to the placeholder character you want. You can do it during widget creation:

(make-instance 'ltk:entry ...... :show "*")

or later:

(ltk:configure my-entry :show "*")