In reply to Anjana.

Hi Anjana,

How are you "running" the program? I run it by issuing the following command from Terminal:

/usr/local/bin/octave

If I want the command line version, I would need to run the following:

/usr/local/bin/octave-cli

I believe that is the default installation. You could check your /usr/local/bin directory. In that directory, you should see several octave links. In mine, I have a link for "octave" and "octave-4.2.1" that both point to the GUI app with two similar links that end in "-cli" that point to the command line version.

Hopefully that helps, if not, let me know.

Norm