std-inp-getname


Synopsis

(std-inp-getname <flag> <msg> <def>)

Description

This is similar to std-getstring, but allows only valid table names (blocknames, layernames, ...) to be entered.

Arguments

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

Return Value

A string, either the given input or the default value.

Side Effects

Interrupts the program flow, prints the formatted message and waits for user input. On invalid names it prompts again.

Module

(std-require 'STDINPUT)

Defined in STDINPUT