Comment 6 for bug 1825609

Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote : Re: Scilab does not work properly. version 6.0.1 Ubuntu 18.04

The code for input(message) (see /usr/share/scilab/modules/io/macros/input.sci) calls prompt(message) and then mscanf(format_string). The prompt() function is meant to modify the prompt for the next user interaction, but for some reason calling this function does nothing at all.

As calls to prompt(new_prompt) do nothing the default prompt ('-->') is shown instead, but any content typed by the user is used for the previous input(message) call. This is a bit misleading for the user, as it seems/feels like nothing happened after the input(message) call, but scilab is in fact expecting the response for the input(message).

I found http://bugzilla.scilab.org/show_bug.cgi?id=14998 reported stating that input(message) should instead be calling mprintf() instead of prompt().