std-inp-getname | ![]() |
This is similar to std-getstring, but allows only valid table names (blocknames, layernames, ...) to be entered.
flag: integer, same as the INITGET flag or nil
msg: a string to be displayed as a prompt or nil. If nil "\nEnter name: " is prompted.
def: default value or nil
A string, either the given input or the default value.
Interrupts the program flow, prints the formatted message and waits for user input. On invalid names it prompts again.
(std-require 'STDINPUT)
Defined in STDINPUT