help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use Notepad++ as an interactive editor for Octave?


From: Tatsuro MATSUOKA
Subject: Re: How to use Notepad++ as an interactive editor for Octave?
Date: Mon, 6 Jul 2015 08:55:36 +0900 (JST)

----- Original Message -----

> From: Paryshaan 
> To: help-octave
> Cc: 
> Date: 2015/7/5, Sun 13:46
> Subject: Re: How to use Notepad++ as an interactive editor for Octave?
> 
>t macchant wrote
>>  Please try 
>>  cmd /c D:\Octave-4\bin\octave-cli.exe --persist  -i -q
>>  $(FULL_CURRENT_PATH)
> 
> I tried this. The results are shown in the interactive NppExec console and
> it interacts as previous and plot window is shown now.
> The clc command didn't clear the NppExec console screen as previous and i
> think it should be solved within NppExec.
> available_graphics_toolkits results to:{[1,1] = fltk  [1,2] = gnuplot}
> which in octave-cli mode it results to:{[1,1] = fltk  [1,2] = gnuplot  [1,3]
> = qt}
> It is solved by replacing 'octave-gui.exe --no-gui' instead of
> 'octave-cli.exe' in the above command. I mean:
> cmd /c D:\Octave-4\bin\octave-gui.exe --no-gui --persist  -i -q
> $(FULL_CURRENT_PATH)
> 
> The default graphics_toolkit is fltk and its window cannot be closed except
> exiting octave. But when i changed it to gnuplot using
> graphics_toolkit('gnuplot') it can be closed.
> 
> It’s founded that when the graphics_toolkit is gnuplot the plot window is
> shown in the previous method without 'cmd /c', i mean:
> D:\Octave-4\bin\octave-cli.exe --persist  -i -q $(FULL_CURRENT_PATH)
> But the fltk and qt plot windows will not be shown and using 'cmd /c' 
> are
> shown and cannot be closed.

> These behavior as i remember is similar to  GUIOctave
> <http://octave.1599824.n4.nabble.com/GUI-Octave-td3298086.html#a3303657
> package from Joaquim Varandas.

These are possible because gnuplot graphics_toolkit executed different process
and octave and gnuplot are communicated via pipe.
The fltk and qt are executed in part of process of octave.

The below is my guess
Notepad++ is based on Scintilla[1]. The other Scintilla based editor is SciTE.
In the SciTE execute external console process never represent GUI based 
graphics directory.
(octave+gnuplot is an exception because of reason described the above)

cmd/c is a trick to pass the process to another command window and then 
fltk and qt are executed but this loses the control of octave prompt from 
notepad++.  


[1] http://www.scintilla.org/


Tatsuro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]