std-inp-edit-string


Synopsis

(std-inp-edit-string <msg> <def>)

Description

Edit a single one-lined string in a GUI dialog and return the edited string.

This is done by creating a temporary text element and use command DDEDIT then.

Arguments

msg: a string to be displayed as a prompt.

def: default string or nil

Return Value

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

Side Effects

Interrupts the program flow, prints the formatted message, creates a temp. tetx entity out of sight, calls the command DDEDIT, waits for user input and deletes the temp entity.

Module

(std-require 'STDINPUT)

Defined in STDINPUT