pause

From DavinciWiki
(Redirected from Pause)
Jump to: navigation, search


Description

Get a line of input from the user.

Arguments and Return Values

Arguments: A string to be outputted to the screen

Return Value: The text typed by the user

Usage

Syntax: pause(message)

The pause() function prints its argument (without a newline), and waits for a line of input from the user, which is returned by the function as a string.

Examples

dv> answer = pause("please enter a number\n")
please enter a number
5
"5
"

dv> answer
"5
"

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 01-31-2008

Personal tools