Rebol Programming/ask

USAGE:

ASK question /hide 

DESCRIPTION:

Ask the user for input.

ASK is a function value.

ARGUMENTS

  • question -- Prompt to user (Type: series)

REFINEMENTS

  • /hide -- mask input with *

SOURCE CODE

ask: func [
    "Ask the user for input." 
    question [series!] "Prompt to user" 
    /hide "mask input with *"
][
    prin question 
    trim either hide [input/hide] [input]
]