octave-maintainers
[Top][All Lists]
Advanced

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

Re: GUI terminal widget


From: Pantxo
Subject: Re: GUI terminal widget
Date: Wed, 5 Jun 2019 09:19:53 -0500 (CDT)

John W. Eaton wrote
> On 6/4/19 12:06 PM, Rik wrote:
>> On 06/04/2019 02:35 AM, CROZIER Richard wrote:
> 
>>> Incidentally, do you really need a pager in the gui? You have scrollbars
>>> on the windows. All you really need is a keyboard shortcut to scroll up
>>> don't you? Like SHIFT+PageUp
>> We would need it if we wanted to maintain compatibility with Matlab.  But
>> you're right that pagers are much less necessary when the data that
>> scrolls
>> off the screen is not gone forever.
> 
> What does Matlab do for the pager inside the GUI?  Does it run a 
> separate process or provide a simple built-in pager in a GUI window?
> 
> I recall asking previously whether Matlab's terminal window provides a 
> full terminal emulation when running on Windows or Linux systems, just 
> to know what Matlab users might expect to be able to do and I think the 
> answer was that it did not provide full emulation.  Maybe someone could 
> verify that with a current version?  What happens if you try to execute 
> something like
> 
>    system ('vi')
> 
> or
> 
>    system ('emacs -nw')
> 
> at the Matlab prompt?
> 
> 
> jwe

On a linux machine, with Matlab 2016a:

>> system ('emacs -nw')
emacs: Terminal type "dumb" is not powerful enough to run Emacs.
It lacks the ability to position the cursor.
If that is not the actual type of terminal you have,
use the Bourne shell command `TERM=... export TERM' (C-shell:
`setenv TERM ...') to specify the correct type.  It may be necessary
to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.
ans =

     1
>> system ('export TERM=xterm; emacs -nw')
[?1049h[?1049h[?12;25h[?1h=[?25l-=--:----F1 
*scratch*      All L1    
(Fundamental)------------
....

The terminal then becomes unusable (e.g. can't "C-x C-c") then I have kill
Matlab.

As for the pager, I don't know how to determine if it is a separate process
since my ML session is run on a separate node from the one I launch it from
(i.e. "ps -u $USER" in the launching terminal won't even list Matlab). All I
can tell is that the pager is pretty basic: "space" scrolls one page
forward, any other key scrolls one line forward, "q" quits the pager. Looks
like its no more than "more", much less capable than "less".
   
Pantxo



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html



reply via email to

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