octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #37401] Multi-line command recall is weird in


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #37401] Multi-line command recall is weird in GUI editor; non-GUI is OK.
Date: Thu, 11 Apr 2013 16:11:04 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20100101 Firefox/10.0.11 Iceweasel/10.0.11

Follow-up Comment #10, bug #37401 (project octave):

I think you just need to arrange to call command_editor::reset_screen_size
when the window size changes.  That function should get the new terminal size
and set the internal readline variables that track terminal size.

I checked in a not-quite-right fix here:

http://hg.savannah.gnu.org/hgweb/octave/rev/d3b01ae21259

It's not quite right because it only updates the size of the terminal just
prior to displaying the prompt.  But in the absense of resize events at
startup, at least the terminal size should be correct then, and if there are
resize events after that, the terminal size will be correct again after one
prompt cycle.  That's better than before, so I checked in the change.

I'm not sure of the best way to hook this function call into QTerminal. 
Whatever you do, it needs to be done so that it works for both the Unix and
Windows implementations.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37401>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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