getkword
(getkword [prompt])
The getkword function prompts the user to enter a keyword.
Keywords are established by a prior call of the initget function.
Arguments
prompt
If the optional argument prompt contains a valid string, it is displayed in the Command Window; otherwise, no prompt is displayed.
Return Value
The function returns the keyword entered or picked by the user or nil.
: (initget 257 "Yes No")
: (getkword "Erase entities ? (Y/N): ")
initget