Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.0.0 - Português


prompt

Get/Set current prompt

Syntax

currentprompt = prompt()
[currentprompt,pauselevel] = prompt()
prompt(userprompt)

Arguments

currentprompt

a string: current prompt returned as a character string.

pauselevel

an integer: current pause level.

userprompt

a string: prompt to display for next user input. Then current prompt will be used again.

Description

currentprompt = prompt() gets the current prompt.

prompt(userprompt) sets the prompt.

Examples

currentPrompt = prompt();
disp(currentPrompt); // Probably "-->"

[currentPrompt, pauseLevel] = prompt();
disp(pauseLevel); // Probably 0

prompt(">>"); // Create a new prompt just for the next command

See also

  • pause — pausa temporariamente a execução atual e permite instruções no console.
  • input — prompt para entrada do usuário
Report an issue
<< %onprompt Console tohome >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Mar 27 09:50:00 GMT 2023