bugGNU Octave - Bugs: bug #55821, Ctrl+C not being passed to the...

 
 

bug #55821: Ctrl+C not being passed to the pager when 'less' is in "follow output" mode

Submitted by:  Dan Sebald <sebald>
Submitted on:  Sun 03 Mar 2019 06:38:04 PM UTC  
 
Category:  Interpreter Severity:  2 - Minor
Priority:  3 - Low Item Group:  Unexpected Error
Status:  Confirmed Assigned to:  None
Originator Name:  Dan Sebald Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 03 Mar 2019 06:44:54 PM UTC, comment #1:

I can confirm.

A weird workaround is to suspend Octave and resume it. After resuming, the 'less' pager will have returned to normal mode, and entering 'q' quits and returns to the Octave prompt.

This first appeared in Octave 4.4, probably due to the way that Octave handles signals including SIGINT now. The signal is blocked in the main thread so the pager never receives it.

Mike Miller <mtmiller>
Project Administrator
Sun 03 Mar 2019 06:38:04 PM UTC, original submission:

Try the following:

and hit Ctrl+C somewhere when it is displaying:

Octave is still in the pager. The pager's "follow output" mode needs a Ctrl+C to exit, but Octave is not passing that escape sequence to the pager. When in pager, type Shft+F, which means to keep moving (pressing) f indefinitely:

Cntrl-C doesn't work at this point. (If there is a key sequence for abort, I don't know it.) So, at this point octave is hung and only killing the process will exit.

Repeat the above sequence without pressing Ctrl+C (use y=1:1e6 if you like), and Ctrl+C still works in the pager after having pressed Shft+F.

Maybe leaving the pager altogether when pressing Ctrl+C during output is the way to go.

Dan Sebald <sebald>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sebald (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-05 mtmiller Severity3 - Normal => 2 - Minor
        Priority5 - Normal => 3 - Low
    2019-03-03 mtmiller CategoryNone => Interpreter
        Item GroupOther => Unexpected Error
        StatusNone => Confirmed

    Back to the top


    Powered by Savane 3.4