promptGet/Set current promptCalling Sequence
currentprompt = prompt()
[currentprompt,pauselevel] = prompt()
prompt(userprompt)
Argumentscurrentprompta string: current prompt returned as a character string.pauselevelan integer: current pause level.userprompta string: prompt to display for next user input. Then current
prompt will be used again.
Descriptioncurrentprompt = prompt() gets the current
prompt.
prompt(userprompt) sets the prompt.
Examples"
[currentPrompt, pauseLevel] = prompt();
disp(pauseLevel); // Probably 0
prompt(">>"); // Create a new prompt just for the next command
]]>See Also
pause
input