Historical updating oE prompt_string, Revision 1

prompt_string

include console.e 
namespace console 
public function prompt_string(sequence prompt) 

prompts the user to enter a string of text.

Parameters:
  1. st : is a string that will be displayed on the screen.
Returns:

A sequence, the string that the user typed in, stripped of any new-line character.

Comments:

If the user happens to type Control+Z (indicates end-of-file), "" will be returned.

Example 1:
name = prompt_string("What is your name? ") 
See Also:

prompt_number

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu