![]() |
![]() |
![]() |
|
[
About the Wizard's Toolkit ] [ Command-line Tools ] [ Application Program Interface ] [ Install from Source Unix Windows Binary Releases Unix Windows ] [ Download ] [ Search ] [ Sponsors: ] |
GetPhrase() gets a phrase from the terminal. The format of the GetPhrase method is:
WizardBooleanType GetPhrase(const char *prompt,PassphraseMode flags,
StringInfo *phrase)
A description of each parameter follows: promptPrompt the user for the passphrase. flagsmodify the behavior of this method by setting one or more of these flags:
EchoOffMode Turn off echo (default).
EchoOnMode Leave echo on.
RequireTTYMode Fail if there is no tty.
ForceLowerMode Force input to lower case.
ForceUpperMode Force input to upper case.
SevenBitMode Strip the high bit from input.
StdinMode Read from stdin, not /dev/tty.
phraseThe passphrase is returned in this buffer. GetPassphrase() gets a passphrase from the terminal and returns it. The format of the GetPassphrase method is: StringInfo GetPassphrase(ExceptionInfo *exception) A description of each parameter follows: promptPrompt the user for the passphrase. |