octave-maintainers
[Top][All Lists]
Advanced

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

Re: using a push parser to connect Octave to a GUI


From: Michael Goffioul
Subject: Re: using a push parser to connect Octave to a GUI
Date: Mon, 30 Jan 2012 09:08:17 +0000

On Mon, Jan 30, 2012 at 2:00 AM, John W. Eaton <address@hidden> wrote:
> On 29-Jan-2012, Michael Goffioul wrote:
>
> | This problem is more or less solved with the QConsole widget I
> | implemented. It's not as elegant as a real UNIX-like PTY, but it's
> | working and seems to be the only reasonable solution for an embedded
> | terminal under Windows. Now, nothing prevents from trying alternate
> | solutions, but keep in mind the getting rid of the PTY will have
> | impact on other components that expect a terminal to work properly:
> | for instance the "ls" command in octave (when run in a PTY, "ls"
> | executable uses the terminal full width for formatting), or the
> | "less"-based pager.
>
> I would guess that simple paging should not be that difficult inside
> the GUI.  It might even be easier to implement an "immediate" paging
> mode so that output is not held up and output is only stopped when
> necessary.
>
> To determine the terminal width, the ls program on my system looks
> first at terminal settings, then the environment variable COLUMNS.

These were just examples. My point was that any "system" call will
potentially behave differently in GUI and CLI mode, because of the
availability of a tty. This is something to keep in mind and make
clear in the documentation.

Michael.


reply via email to

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