getstring


(getstring  [ CrLf ]  [ prompt ] )

This function pauses for user input to specify a string, optionally containing spaces.

Arguments

CrLf  (optional) if specified and non-NIL, the input must be finished by return/enter key, therefore allows spaces in the string

prompt  (optional) a prompt string to be shown; if omitted, a standard prompt is shown

Return

string, or NIL

Example

(getstring "\n* Enter a key : ")  does not allow spaces
(getstring T "\n* Enter a key : ")  allows spaces

Remarks

see (initget) function



©  Bricsys NV. All rights reserved.